-
Notifications
You must be signed in to change notification settings - Fork 777
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
[FEAT]: Require approval from someone other than the last pusher #1352
Comments
Looking at the GitHub API, I can see that the proper name for the option might rather be |
This is such an important improvement to branch protection. I hope this will go in soon. |
I agree, this would be awesome to have! Do either of you have interest in opening a PR for this behavior? |
Looking into this, it looks like |
Actually no need for me to open a PR, this one takes care of the necessary change, shurcooL/githubv4#107 |
I've got a commit here that does all the work to add this option as well as the lock branch option since they were introduced at the same time. Because my test requires overriding the current version of the If I'm able to open a PR once that (or another PR on githubv4 gets merged) I will, but I am not able to spend as much time on this as I would like so hopefully my code snippet above helps someone down the line. Below is the code I wrote to test and validate it so it should work along with a screenshot of the results:
|
Good news, today a PR I opened that just updates the schema got merged 🎉 . Friday I will look to open a simplified version of my previous change as a PR to hopefully get this feature implemented |
Describe the need
I see that at least according to the
branch_protection
documentation of the currently latest version (5.7.0) the "Require approval from someone other than the last pusher" option isn't available for therequired_pull_request_reviews
parameter.That boolean option would be very important for my use case, and its name could be e.g.
require_non_last_pusher_approval
.SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: