atlassian-python-api
atlassian-python-api copied to clipboard
Creating a branch bitbucket cloud
Hi
I can see there's an API to create branches on the bitbucket library, but AFAIK that's only for Bitbucket server. Is there a reason why that functionality is not present on the Cloud API?
Thanks
Is there a reason why that functionality is not present on the Cloud API?
My guess is no. There isn't a reason the functionality isn't present other than it hasn't been needed yet so it hasn't been implemented.
That's a fair point. That said, how can we make this a feature request, if guided, I could contribute this if it's not too big of a change.
According to the docs, and how the code is structured, it's about adding a create
method in either the Branches class or in the Branch class. If we follow the docs, the url is refs/branches
which would indicate it should be under the Branches, but, one could argue one is creating a Branch.
You will want to add the create under Branches