Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Inquiry about Preventing Self-Merge for Authors

shivam
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!
January 25, 2025

Hi Bitbucket Support Team,

I’m currently evaluating Bitbucket Premium, and I wanted to clarify a specific feature. Does Bitbucket Premium provide the ability to prevent authors from merging their own pull requests (i.e., self-merging)? I understand that this functionality is not available in other plans, so I wanted to confirm whether it is included with Premium and, if so, how to enable it.

Thank you for your assistance!

Best regards,
Shivam

2 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 28, 2025

Hi Shivam and welcome to the community!

With the Premium plan you can enforce a merge check for the minimum number of approvals (or minimum number of approvals from default reviewers) needed to merge, along with the option Prevent a merge with unresolved merge checks. These options are available in the branch restrictions:

  1. Open a repository on Bitbucket Cloud website
  2. Select Repository settings from the left sidebar
  3. Select Branch restrictions from the new left sidebar
  4. Select Add a branch restriction
  5. On the new window where you set up a branch restriction for a certain branch, select the tab Merge settings.

    In there, you will see the available merge checks and also the option Prevent a merge with unresolved merge checks (this will be disabled if your workspace is not on the Premium plan yet).


Even if the author approves their own PR, this won't count towards the merge check of minimum approvals. The feature doesn't prevent an author from self-merging (there is no such feature available now), but it will block merging unless a certain number of people approve the PR.

We have a feature request for what you are asking:

If you'd be interested in that, please make sure you add your vote to that feature request (by selecting the link Vote for this issue) to increase the chances of this being implemented. You are more than welcome to leave feedback, and you can also add yourself as a watcher (by selecting the link Start watching this issue) if you'd like to be notified via email on updates.

Implementation of features is done as per our policy here and any updates will be posted in the feature request.

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

0 votes
Hana Kučerová
Community Champion
January 25, 2025

Hi @shivam ,

welcome to the Atlassian Community.

Please see this answer, it should be possible.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events