I want to ensure each time a new repo is created it gets our standard branch permissions. I also want to replicate the permissions across our existing branches.
Hello Tony,
Your best option to control branch permissions across multiple repos within Bitbucket cloud would be to use the REST API to procedurally manage your permissions. This would allow you to create scripts which you may execute when adding a branch that needs standard permissions or verifying your branch permissions are set properly. The REST API endpoint, in this case, would be /2.0/repositories/{username}/{repo_slug}/branch-restrictions.
Further information on the Bitbucket Cloud v2 REST API can be found at About Bitbucket Cloud REST API.
I hope this proves helpful and you’re able to replicate permissions across multiple branches.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.