go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Branch Protection w/o required PR review allowed by Github but not API

Open zfLQ2qx2 opened this issue 4 years ago • 1 comments

The Github web GUI allows you to create branch protection rules without requiring pull request reviews - disallowing delete/force push and limiting the entities that can merge changes, but not requiring a PR which in our case happens elsewhere in the pipeline. It does not seem possible to express this to the UpdateBranchProtection() function in go-github - if I leave required_pull_request_reviews null then I get a validation error.

zfLQ2qx2 avatar Oct 28 '21 13:10 zfLQ2qx2

This sounds like a good question to ask GitHub tech support. If the GitHub v3 API can not perform what you want, then this Go client library will certainly not be able to either.

Please contact GitHub tech support with your question and report your findings back here. Thank you.

gmlewis avatar Oct 28 '21 13:10 gmlewis