Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket-API: Branch permissions

PJAl February 4, 2019

Hello,

We have certain feature branches for which we need to restrict branch deletion or prevent rewriting history. But we noticed that it does not work for any branches other than develop or master. We are running bitbucket versoin 4.5.2.

Is this a known issue or are we missing something that we cannot restrict branch deletion even though the settings on that branch have that prevention enabled.

 

Thanks,

Pranothi

 

 

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2019

It should work on any branch. How are you adding the restrictions? Using the exact branch name? Or a pattern?

See https://confluence.atlassian.com/bitbucketserver/using-branch-permissions-776639807.html#Usingbranchpermissions-Addingbranchpermissions for more details.

PJAl February 5, 2019

Thanks for getting back. So apparently it does work.

It still gives the option to delete which was weird. But when we click on the delete option, it comes back with a pop-up saying "Branch feature/blah-blah" cannot be deleted. It is protected by branch permissions.

So I guess seeing the option to delete created the concern.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events