Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Camilo Sasía June 9, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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
AUG Leaders

Atlassian Community Events