Missed Team ’24? Catch up on announcements here.

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

How to set branch permission to restrict user can only access specified branches?

raymond1860
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!
November 18, 2019

Here is the requirement:

  1. User can only push branch names with pattern hotfix/*, feature/*,bugfix/*;
  2. Branch master, develop, release/*, customize/* only accept merge request;
  3.  Other branch names are not allowed creating except repository administrator.

So I add branch permission.

  • * ,prevent any changes
  • feature/,hotfix/,bugfix, prevent any changes except user group
  • master, develop, release/ , customize, Prevent changes without a pull request

 

Unfortunately, these restrict rules do not work as expected. I was noted that there is a possible confliction on rule 1 "* ,Prevent any changes" and others. I tried this on GitLab and it works as expected.

 

Anyone has suggestion on this? Or it's impossible using bitbucket branch permission policy.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events