Forums

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

How to place an accepted PR on hold

Erik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 28, 2020

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
Evan Slaughter
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 5, 2020

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

Atlassian Community Events