atlassian-api / atlassian-python-api

Atlassian Python REST API wrapper
https://atlassian-python-api.readthedocs.io
Apache License 2.0
1.34k stars 661 forks source link

Creating a branch bitbucket cloud #1193

Open bjv-capra opened 1 year ago

bjv-capra commented 1 year ago

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

djgoku commented 1 year ago

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.

bjv-capra commented 1 year ago

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.

djgoku commented 1 year ago

You will want to add the create under Branches