-
Notifications
You must be signed in to change notification settings - Fork 24
feat: support multiple PR reviews #223
feat: support multiple PR reviews #223
Conversation
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
Resolve incorrectly using the requested number of reviews. The value is not the total number of requested reviews, but the number of reviews remaining. Also, fix a commit issue where the `payload.json` fixture was not committed along with the tests
@allout58 Sorry not to replay quickly. I am gonna review your awesome work. Thanks a lot. |
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.
Sorry, I'm late and I appreciate you work but I left some comments. Thanks in advance.
const requiredReviews = | ||
branchProtections.data.required_pull_request_reviews; | ||
return ( | ||
(requiredReviews && requiredReviews.required_approving_review_count) || 1 |
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.
Should it return 1
even if there is no required number of reviews? I would appreciate it if you could tell me the reason.
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.
This is a result of this comment on the original issue. Should be easy enough to change to zero, or in the future have some way of configuring the default.
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.
@allout58 I understand!
Description
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
(also includes the fix included in my PR #222, but actually from the CLI so it updates the required tests as well)
Fixes
fixes #194
New Permissions
Requires an update to the requested permissions: