How to automatically unapprove when pull request is changed?

Hi,

 

We would like to automatically "undo" approves for a pull request when it is updated - it is too easy to make mistakes without it.

There is a plugin for BitBucket Server (https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-auto-unapprove-plugin/server/support), but there seems to be none available for Bitbucket Cloud.

 

Is there any other way for us to realize this?

 

Kind regards,

Roderik van Heijst

1 answer

1 accepted

Accepted Answer
0 votes
Eric Henry Atlassian Team Sep 20, 2017

Hello Roderik,

If you have a Premium plan, you can enable required merge checks that will unapprove pull requests when the source branch is modified. There are other merge checks available as well. See the merge checks documentation page for more details.

Eric Henry
Development Team Lead, Bitbucket Cloud

Hey Eric,

Do you know of anything technical/legal that would prevent us from setting up a little server to do this on our own with webhooks?

Thanks!

Josh

Hey @Joshua Gribbon,

Unfortunately, there isn't any way to do that with the API. Yes, you could receive webhooks to know when a PR is changed, but then there is no way to unapprove the pull request for all participants. The API only lets you remove approval for the currently authenticated user.

Eric Henry
Development Team Lead, Bitbucket Cloud

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

2,557 views 5 6
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