-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ProtectedBranches API changes for Required Review Enforcement #1512
Comments
I'd like to try and do this one if it's still available |
All yours @M-Zuber ! |
I want something small in order to get back into things. |
existen datos ahora.
ALG Services
…On Dec 12, 2016 7:52 AM, "Ryan Gribble" ***@***.***> wrote:
As per this blog anouncement
<https://developer.github.com/v3/repos/branches/#update-branch-protection>
the ProtectedBranches API has a new required_pull_request_reviews object
-
On the existing UpdateBranchProtection method (add to our
BranchProtectionSettingsUpdate request object, which will require a
few ctors to be added to cater for the different combinations of the 3
fields being provided/not provided)
-
Returned by the existing GetBranchProtection method (add to our
BranchProtectionSettings response object)
-
On new methods to Get
<https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch>,
Update
<https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch>,
Remove
<https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch>
the required review enforcement
- GET /repos/:owner/:repo/branches/:branch/protection/required_
pull_request_reviews
- PATCH /repos/:owner/:repo/branches/:branch/protection/required_
pull_request_reviews
- DELETE /repos/:owner/:repo/branches/:branch/protection/required_
pull_request_reviews
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1512>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHT9JR2bogRk_V-YxTRgGfH2WI5lhKClks5rHVGzgaJpZM4LKkUR>
.
|
How exactly do you want the additional ctors to look? Based on my understanding of the docs: This would lead to a total of 3 ctors:
Does that make sense? |
I would have thought passing null means review isn't required at all, then passing the object means review IS required (with the boolean indicating whether admins also have to comply with it or not). If you can't pass null how do you indicate no review is required? |
Hmmm... Had not thought of it that way, and you are probably correct. So I am going to assume you are correct, and try to write an integration test proving it. |
I didn't get to writing the tests yet, but am making a pr just to get another set of 👀 on it as soon as possible |
resolved with: #1523 |
As per this blog anouncement the ProtectedBranches API has a new
required_pull_request_reviews
objectOn the existing
UpdateBranchProtection
method (add to ourBranchProtectionSettingsUpdate
request object, which will require a fewctor
s to be added to cater for the different combinations of the 3 fields being provided/not provided)Returned by the existing GetBranchProtection method (add to our
BranchProtectionSettings
response object)On new methods to Get, Update, Remove the required review enforcement
The text was updated successfully, but these errors were encountered: