-
Notifications
You must be signed in to change notification settings - Fork 24
Support multiple PR reviews #194
Comments
When you have a large backlog, I wonder if a label indicating one more review is needed would help keep the backlog moving. new_pre --> PR: unreviewed --> PR: reviewed-changes-requests --> PR: partially-approved --> PR: reviewed-approved --> PR: merged (may need a better name) Then maintainers can search for PRs that need just a little more help getting merged. |
@gundalow I like your idea. PRTriage would triage pull request with the following rule:
|
Incidentally, I would like to change the name of |
or maybe just |
How would the bot know how many reviews are needed? Could it read branch protections via the API? If that isn't set, default to |
It is very simple but I think we cannot guess the next action of PR and |
We can get the number with https://developer.github.com/v3/pulls/review_requests/#list-review-requests
We can get the number with https://developer.github.com/v3/repos/branches/#get-branch-protection
I got it. |
Just a small comment from my end if I may. I'm not sure whether |
Perhaps keeping it |
Sounds good to me. |
I'm planning to take a crack at a PR for this issue this afternoon. Any other thoughts before I start working on it? |
It looks like https://developer.github.com/v3/repos/branches/#get-branch-protection doesn't actually return the |
Provide support for requiring multiple reviews. Add a "partially-approved" state, which occurs when the number of approvals is less than the required number (from branch protections) or the number of reviewers who have been requested but have not submitted an appr fixes pr-triage#194
Provide support for requiring multiple reviews. Add a "partially-approved" state, which occurs when the number of approvals is less than the required number (from branch protections) or the number of reviewers who have been requested but have not submitted an approval fixes pr-triage#194
Is your feature request related to a problem? Please describe.
There are a lot of people on our team so we require at least 2 PR approvals on some branches. Unfortunately, the bot doesn't seem to recognize this. It adds
APPROVED
label as soon as at least one approval is received, which is confusing.Describe the solution you'd like
It'd be great if the bot could access repo settings and check how many approvals are required before updating labels.
Describe alternatives you've considered
N/A
Additional context
I'd be more than happy to help with the PR.
The text was updated successfully, but these errors were encountered: