Enforce protected branches policy in multiple repositories (or clone from one to another)

We have a number of repositories in our organization. (atm circa 50, planned to go up to some 400 in a year’s time)

We would like to be able to have the same protected branch settings across all of the repositories.

Is it possible to clone those settings through the UI, or, ideally, manage them centrally for common branches (e.g. master/develop)?

I do understand that i can write an API script that will apply this to all existing repositories, i’d like to avoid having to do it for all new ones.


No, there isn’t currently a way to do what you’re asking. Though you may want to keep an eye on this PR to the Probot Settings app, which is planned to add that feature to Probot Settings.

1 Like