-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Autolabel PR's that are ready to land? #33164
Comments
Discussions have been taken on nodejs/build#2201 recently. |
It cannot be done in GitHub actions as they don't allow write permissions to add labels to PR's from forks. The Node.js GitHub bot (https://github.com/nodejs/github-bot) does currently automatically apply labels on PR create. |
I'm not sure something like that is feasible. For example, there are many times when I've seen people "request" one or more changes to be made, but click "approve" early with the assumption the changes will be made. There could also be concerns raised in the PR (not via the "request changes" mechanism) that have yet to be addressed. |
FWIW, as a rudimentary substitute for something like this, I used to search for PRs that were open and approved in this repository, omitting certain labels (like the work-in-progress one). Then scroll down to ones that say 3 days or older (or reverse the sort order to be oldest first). Something like this: https://github.com/nodejs/node/pulls?page=4&q=is%3Apr+is%3Aopen+review%3Aapproved+-label%3Asemver-major+-label%3A%22work+in+progress+%28WIP%29%22+-label%3Ablocked |
@ronag it would definitely be possible to create such a bot but it has to know about a lot of special cases:
As @mscdex pointed out it won't be possible to catch requests for changes that are just regular comments that way but it should be sufficient to at least mark most PRs correct. I think as soon as such bot would be active, people would pay more attention how to ask for changes to prevent the bot from labeling it wrong. |
@ronag now that we have the commit queue, do you think we need to keep this open? |
I'm going to go ahead and close this, but absolutely feel free to re-open and/or comment if you think that's the wrong decision. Just tidying up a bit, but not acting on a strong conviction or anything like that. |
We already have a functionality in
node land
which check whether a PR can land or not, i.e. sufficient time and approvals etc. Would it be possible to create a bot that automatically checks this for PR`s and applies/removes a label accordingly on GitHub?Might be helpful when going through PR's and trying to land them. Or what do you think @Trott @BridgeAR?
The text was updated successfully, but these errors were encountered: