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 vote

If you're using Bitbucket Cloud (bitbucket.org) 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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,693 views 26 12
Join discussion

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