-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improve GH Action PR assign + labeling #3584
Conversation
Signed-off-by: Carlisia <[email protected]>
Changing this to draft. Let me do some tests on a personal repo. It seems that w/o the |
I tested this and it works as expected. Turns out, when This is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Signed-off-by: Carlisia <[email protected]> Signed-off-by: Pradeep Jigalur <[email protected]>
Signed-off-by: Carlisia <[email protected]>
Signed-off-by: Carlisia <[email protected]>
Signed-off-by: Carlisia <[email protected]>
Signed-off-by: Carlisia [email protected]
Please add a summary of your change
This change removes the
synchronize
parameter from thepull_request_target
GH action in theAuto Assign PR Reviewers
workflow. This should avoid the workflow from being triggered on all PR events, such as additional commits, which has the effect of adding additional reviewers (with each additional commit) beyond the current limit of 2. We only want this to be triggered when the PR opens, or when the PR changes from WIP to "ready for review".It also separates the auto labeling GH action into the
"Auto Label PRs"
workflow. This one we want to be triggered on every event, so it keeps thesynchronize
and all other parameters the same.Thanks to @zubron for pointing these out (in #3573 (comment)). Hopefully this will work.
Does your change fix a particular issue?
Fixes #(#3573)
PS: It doesn't completely fix the entire issue. For example: if the author wants to assign 2 specific reviewers before the PR is created, the GH action will still assign additional reviewers on the "open" event. This is the known bug in the action.
A way to get around this is to remove the originally assigned reviewers after the PR is created, and add the ones you want (assuming they don't match). This "works", but causes unnecessary notifications for the soon-to-be-removed reviewers.
A way to get around wanting to
Please indicate you've done the following:
/kind changelog-not-required
.site/content/docs/main
.