Hi folks,
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 ?
---
Regards,
Erik
Hey @Erik,
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!
Thanks,
Evan Slaughter
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.