-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix re-request loop for user reviewers (#302)
If a user was requested for review, but their review didn't change the status of the policy for some reason, policy-bot could immediately re-request them as a reviewer. This was most likely to happen if a user left a "request changes" review on a repository that does not have a disapproval policy. To fix this, look at all reviews on the current commit and exclude their authors from the list of requests. If the pull request is updated in the future, the users become eligible for requesting again. Because we already list reviews for basic policy evaluation, this shouldn't add any new requests.
- Loading branch information
Showing
4 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters