You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
PR 1 is opened which has no changes matching patterns in labeler.yml, and as expected receives no labels, good. Meanwhile, PR 2 (which did match and receive a label, also good) is merged into main. Afterwards, merging main into PR 1 causes labeler to apply the same labels applied to PR 2, bad.
Action version:
v4
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Repro steps:
Create PR 1 which matches no rules in labeler.yml, confirm no labels are applied to PR 1
Create PR 2 which does match rules in labeler.yml, confirm labels are applied to PR 2
Merge PR 2 into main
Merge main into PR 1, observe that PR 2s labels are applied to PR 1
Expected behavior:
Upon 4 above, no labels are applied to PR 1
Actual behavior:
Upon 4 above, labels are applied to PR 1
The text was updated successfully, but these errors were encountered:
Edit: another work around is restricting the activity types to opened and reopened and by that dropping synchronize, see here: "By default, a workflow only runs when a pull_request_target event's activity type is opened, synchronize, or reopened"
Description:
PR 1 is opened which has no changes matching patterns in labeler.yml, and as expected receives no labels, good. Meanwhile, PR 2 (which did match and receive a label, also good) is merged into
main
. Afterwards, mergingmain
into PR 1 causes labeler to apply the same labels applied to PR 2, bad.Action version:
v4
Platform:
Runner type:
Repro steps:
main
main
into PR 1, observe that PR 2s labels are applied to PR 1Expected behavior:
Upon 4 above, no labels are applied to PR 1
Actual behavior:
Upon 4 above, labels are applied to PR 1
The text was updated successfully, but these errors were encountered: