The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Bitbucket-API: Branch permissions

PJAl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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.

TAGS
AUG Leaders

Atlassian Community Events