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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.