PROBLEM:
Each time I set up a new repository the underlying branch permissions, branching model and users/groups have to be manually entered, Is there any way to speed up this process?
THINGS I'VE TRIED:
Bitbucket Cloud Rest API: I've tried automating repository creation by creating the repo and the underlying settings through the API, this has been partially successful, though I've found with the Branch Permissions you cannot simply "get" those from another repo, remove the ID's and "post" to give you an identical repository setup.
Python Libraries: I've tried a couple but I've found they either need to be re-worked for bitbucket cloud (they all seem to be for Bitbucket Server and those that aren't don't seem to be up to date)
Any advice on tools people may have used in the past would be appreciated!
Hello @jimmy.askew ,
Welcome to the Community!
There's no such tool in Bitbucket UI, and I'm not aware of any third-party add-ons that would do this, unfortunately. However, this should be feasible with REST API.
I've found with the Branch Permissions you cannot simply "get" those from another repo, remove the ID's and "post" to give you an identical repository setup.
Hm, this should work with this endpoint. Note that it expects one restriction per call, maybe that was the problem? See this thread, for example.
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also would like to be able to do this. Or at least set the settings up at the administrative level so that all new repositories have a standard template of settings, README.md and .gitignore.
Though I'd be happy with just the bitbucket settings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.