atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

Creating a branch bitbucket cloud

Open bjv-capra opened this issue 1 year ago • 3 comments

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

bjv-capra avatar Jun 25 '23 10:06 bjv-capra

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.

djgoku avatar Jun 25 '23 20:06 djgoku

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.

bjv-capra avatar Jun 26 '23 05:06 bjv-capra

You will want to add the create under Branches

djgoku avatar Jun 26 '23 22:06 djgoku