Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to place an accepted PR on hold

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

1 answer

1 accepted

0 votes
Answer accepted

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

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...

3,925 views 10 16
Read article

Community Events

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

Events near you