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

Branch Protection Pattern

Open inidona opened this issue 6 years ago • 1 comments

In GitHub UI i can create an Branch Protection with an Pattern. So the branches not exists in this moment in the repo and will be protected after it created.

i studied your api but found only the protection of real existing branches.

i am right, and if is it possible to enhance the api ? Mayby with an String contructor in GHBranchProtectionBuilder ?

thanks andreas

inidona avatar Dec 03 '19 15:12 inidona

It might be possible. It would depend on it being available as part of the Branch Protection API. See if you can find it here: https://developer.github.com/v3/repos/branches/#update-branch-protection .

bitwiseman avatar Dec 03 '19 16:12 bitwiseman