Forums

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

How to automatically unapprove when pull request is changed?

Deleted user August 23, 2017

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

0 votes
Answer accepted
Eric Henry
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 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

Josh September 28, 2018

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

Eric Henry
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 28, 2018

Hey @Josh,

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
TAGS
AUG Leaders

Atlassian Community Events