You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have added two groups Admin and Dev on the repository and added following branch restriction
Write access : Admin
Merge via pull requests : Dev
But these restrictions are not working and when I push from Dev user it shows following error
remote: Permission denied to update branch Dev.
To https://bitbucket.org/myapi/apiv3.git
! [remote rejected] Dev -> Dev (pre-receive hook declined)
error: failed to push some refs to
I am not sure how to resolve this issue as I am following the guidelines written here https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/
Can anyone help me to resolve the issue and setup branch permissions.
Hi @vikramiron ,
please could you share your repo permissions and branch permissions scrennshot? We need to figure out your current setup so that we can support you on that.
Please keep in mind that, in order to complete a pull-request a user need to have WRITE permissions on the target branch.
Fabio
Please check screenshots
User group permissions: https://nimb.ws/hXljB0
Branch permissions: https://nimb.ws/5UhjYu
I have changed the group name to Reviewer, when I try to push with a reviewer it shows the error mentioned in the question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @vikramiron ,
in my opinion there is an inconsistence due to Write access just to admininstrators. If you remove that branch restriction all should be ok.
https://bitbucket.org/blog/take-control-with-branch-restrictions
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.