I know how to configure branch protection and about the new wildcards support, but is there a way always to define **master** and **develop** (for instance) as protected branches with the same rules?
The wildcards pattern does not work in this case. I would work if it could support regular expression, but I know that’s not possible at the moment.
We have many projects (and more coming), and they should all follow the same rules for these two main branches as soon as they are created on GitHub.
Having to repeat the same steps every time is a bit frustrating.
Also, some projects usually start with just **master** and the **develop** branch gets created only after the first release: project admins must remember to add this branch to the protected ones and trust me, it almost never happens before someone realises that the branch got commits “the wrong way”.