Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,282
Community Members
 
Community Events
168
Community Groups

Bitbucket API: get branch permissions (merge via pull request)

Hello! Is there a Bitbucket API to get branch permissions? Specifically, if a repository has the "Merge via pull request" policy.

Thanks in advance.

 

Screen Shot 2021-06-08 at 10.28.24.png

1 answer

0 votes
Syahrul Atlassian Team Nov 28, 2021

Hi @Camilo Sasía

I believe what you are looking for is an API endpoint - Branch permission this should list out the current branch permission on the repositories.

We don't have an API endpoint to get a list of repositories that has Branch permission, unfortunately, this has to be done manually on each repository within your Workspace. We do have an existing feature request on this, please Vote & Watch the feature request so that you'll receive an update whenever we have any at:

I hope this helps.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events