How to stop a pull request from being merged?

In our BitBucket configuration it is possible to add changes to the pull request and merge it after the initial approval is given.

The scenario:

1) Create a pull request from the dev branch to master

2) Approve it by someone else

3) Push more changes to the same branch dev branch. The changes now appear in the same pull request

For some reasons, the new changes do not require an approval and can be merged now along with the main change.

Can we change BitBucket configuration in such a way that every new change to the pull request resets the number of approvals to zero?

3 answers

The free Bitbucket Server Auto Unapprove Plugin probably does what you're looking for.

It's free, open source, and maintained by Atlassian.   In a couple weeks I'm hoping it will stop dropping approvals for immaterial changes (like clean rebases, clean synchronization merges, amended commit messages, etc).


- Sylvie

(I'm the author of the paid Bit-Booster for Bitbucket Server add-on. If you check out my add-on, you'll see why I decided to send a pull-request to the Unapprove add-on.   Customers were reporting bugs against *my* add-on to say my Rebase button was dropping their approvals!)



0 votes
Jim Redmond Atlassian Team May 17, 2017

If you're using Bitbucket Cloud ( then there's a "Reset approvals when the source branch of a pull request is modified" option in the branch permissions.

Unfortunately, we use our own local installation.

Jim Redmond Atlassian Team May 17, 2017

If you can tag this question (and any future ones) as "bitbucket-server", then that will help clarify things for the people answering them.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

265 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you