Skip to content

GET and PUT inconsistency #1724

Answered by gr2m
cjonasw asked this question in General
May 20, 2020 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I'm afraid there is not much we can do with the SDK to help. We just wrap the existing REST API endpoints, we are not changing them, with a very few exceptions. You can see the inconsistencies documented in the REST API here: https://developer.github.com/v3/repos/branches/#update-branch-protection. I'm afraid you will have to handle the inconsistencies yourself.

One alternative would be to use GraphQL. I quickly checked, but it looks to me like the allowDeletions settings is not enabled yet. You could check in with https://support.github.com/contact to ask about that.

Yet another alternative would be to create an Octokit plugin which abstracts away these differences. I'm sure you are not …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cjonasw
Comment options

@gr2m
Comment options

Answer selected by wolfy1339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants