-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging main
into PR causes incorrect labeling
#784
Comments
Hello @jamesmehorter |
We are seeing a simliar issue as well. |
Hi @jamesmehorter , we investigated the issue with provided details. After thorough investigation the workaround we recommend, is to avoid passing synchronize and closed values to the pull_request parameter which triggers the workflow. We recommend following code snippet as a solution.
By default a workflow only runs when a pull_request event's activity type is opened, synchronize ,or reopened. Hence it would be essential to avoid the use of synchronize and closed pull request activity types as a value for the parameter. Kindly refer the following link for more information. |
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: