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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Branch restrictions not working with user groups

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.

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 01, 2022

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

Hi @Fabio Racobaldo _Herzum_ 

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.

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 01, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events