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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

441 views 4 4
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