feat: add missing branch protection fields#2376
feat: add missing branch protection fields#2376ruben-chainalysis wants to merge 2 commits intoPyGithub:masterfrom
Conversation
|
Can you add Edit: Also from what I can gather, you may need to edit the |
Sure, I only needed 2 of the missing ones and didn't notice there are more protections not mentioned in the original, I'll take a look, seems in scope for this (mentioning #2299 because we might fix that one too).
I'll give it a go, thanks for the suggestion! Any help with this would be appreciated, as this PR might take some time to get merged, I'm working on using requests directly as a workaround and that takes precedence. |
|
I have done this now upstream from here in this PR which looks like it is passing! Edit: Worth noting I couldn't get pytest working to update those files automatically either so I ended up just updating each file with the new fields manually |
|
Closing in favour of #2378 |
Fixes #2373
Add new BranchProtection options listed here: https://developer.github.com/v3/repos/branches/
Replica of #1723 (and like the original contributor, running the tests locally is giving me pain).