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

create branch protection rules at an organization level

I'm looking to see if there is a way to apply a default branch protection rule on master that is provided to all newly created repos. So let's say my organiztion is 

 

Jason

 

which has the repos

 

Jason/eatsLunch

Jason/eatsDinner

Jason/sleepsLate

 

Is there a way to make a default protection for master that applies to any new repos I create, like

 

Jason/doesTheDishes

Jason/doesLaundry

 

so that a rule would be created for master branch that requires an approved PR to commit to master and that approvals are automatically dismissed if a new upload to the branch becomes available, etc. Right now, we have a guide for my team on setting this up when they make a new repo, but we'd like something a bit more automatically enforced. Is there angle through the API I should investigate?