Using server version 6.2.
After all reviewers have reviewed and accepted a PR the merge button is enabled.
Is there a way to put that PR on hold so it disables the merge button ?
I can do it by adding a 'task' via REST and delete it when I want to. But unfortunately I don't see how to limit deleting a 'task' to admins only or certain users only. It seems PR owner can ALWAYS delete a task connected to a PR comment.
And I do not want to use number of successful builds as requirement.
Is there a better way to put that PR on hold so it disables the merge button ?
Sounds like what you want is a type of merge check that meets a set of criteria for your team.
There's a variety of default merge checks that come bundled with Bitbucket (see above article), which help implements popular restrictions on when a PR can be merged - but your team can also look to see if there's something over on the Atlassian marketplace that does more of what you're looking for 'out-of-the-box'.
Alternatively, it's also possible to develop your own merge check - but this process is a bit more intricate for those unaccustomed to writing customizations for our products. That document, though, helps outline what that process looks like, and also leads to more generic resources for help in customizing our products through writing your own code.
Hope this helps!
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events