Skip to content
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

improved branch protection support #340

Closed
wants to merge 2 commits into from
Closed

Conversation

jgangemi
Copy link
Contributor

@jgangemi jgangemi commented Feb 15, 2017

this PR will improves the support around protected branches and bring it inline w/ the current api. what is currently there doesn't work (properly at least) and given how i interpreted the @Preview docs, this seems inline.

@@ -169,6 +169,11 @@ public Requester with(@WillClose/*later*/ InputStream body) {
return this;
}

public Requester withNullable(String key, Object value) {
args.add(new Entry(key, value));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to this: https://developer.github.com/v3/repos/branches/#update-branch-protection, these values can be explicitly null and rather then change how _with worked, i created the new method.

@jgangemi jgangemi changed the title [work in progress] improved branch protection support improved branch protection support Aug 8, 2017
@jgangemi jgangemi closed this Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant