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

Branch restrictions doesn't work for: Merge access via pull requests

Volodymyr
Contributor
June 11, 2024

Screenshot.pngScreenshot 1.png

Screenshot 3.png

So as you can see I want to be the only one person who can do merge on master branch, but other user was able to do merge without any questions or pull requests.., just via regular commit. 

Why? Or what I'm doing wrong? Or how to restrict from merge in master ?


2 answers

1 vote
Saxea _Flowie_
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 Leaders.
June 11, 2024

Hi @Volodymyr,

You need to to select "Only specific people or groups have write access" on Write access.

Volodymyr
Contributor
July 29, 2024

But I need all developers have write access which I added into group Developers

And I set only I can have a merge access, but anyway all still has it. 

Screenshot.png

Overall this access UI and confusion and awkward, hard to understand and not working.

Like Jonathan Duncan likes this
Volodymyr
Contributor
August 16, 2024

So again I will select the same people, me and other developer. How this will prevent and will get a linear history in the end? These specific people or everyone is the same for my case.

0 votes
Volodymyr
Contributor
July 29, 2024

So again, this is pretty obvious, everyone can write, so can commit changes, but only specific people - me, can merge. 

But this is NOT working, everyone still can merge. 

 

Screenshot 1.png

 

Screenshot 2.png

Saxea _Flowie_
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 Leaders.
August 6, 2024

Write still lets people merge and push to the branch. If you can write you can merge, after all, a merge is basically creating new commits.

The "Only specific people or groups have merge access" options refers to merging via pull requests.

So with your setting - only you can merge via Pull request and everyone can write/merge directly to the branch.

Typically you would restrict write access to protected branches and allow merge only via pull request to them.

Volodymyr
Contributor
August 17, 2024

But I need like on GitHub option - Linear History!

Saxea _Flowie_
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 Leaders.
August 18, 2024

Bitbucket doesn't have this option built-in, however we provide an Bitbucket cloud app that add supports to creating and enforcing linear history.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events