Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 21 of 24

Re: Apply branch protection to two branches with entirely different names.

Can't you do this with simply * ? 

I'm looking for somethign that would let me do master OR development. Seems like such a common thing, kind of interesting that was overlooked.

Copilot Lvl 2
Message 22 of 24

Re: Apply branch protection to two branches with entirely different names.

Wanted to weign in myself here. Something like {master, develop} would make my life much easier as I help to manage about 28 repositories!

Highlighted
Ground Controller Lvl 1
Message 23 of 24

Re: Apply branch protection to two branches with entirely different names.

* worked for me in order to apply protection rule over all of existing branches

Mission Specialist Lvl 1
Message 24 of 24

Re: Apply branch protection to two branches with entirely different names.

Any update on this? At least update the documentation that says github does not use fnmatch syntax. Reading the documentation, we would fully expect to use fnmatch like `{master,develop}` to match two branches.

 

https://help.github.com/en/github/administering-a-repository/configuring-protected-branches