Here is the requirement:
- User can only push branch names with pattern hotfix/*, feature/*,bugfix/*;
- Branch master, develop, release/*, customize/* only accept merge request;
- 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.