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

Block pull request before rebase from master


We have a new project in BB
I want to know if there's a way to block the creation of PR (from BB console or from the IDE) until the user pull/rebase from the master branch to his local/remote branch

I'm facing this in the current project & at the merging phase I getting blockers that add more work to my day-to-day


Pls. advice

1 answer

You could, there is a cancelable event in BB server

However, suppose you did, what happens the first time another PR  is merged to master or master changes otherwise? All PRs would need to be rebased again.

This is a common flow on git and PR process is intended to support this natural pattern.    Generally I would advise more frequent integrations if your getting big blockers (smaller batches reduces merge effort).  But also use automated builds that run on a PR to always rebase in from your main branch before testing.

That way as soon as anyone opens a PR without rebase it will test including the merge, and you know once you accept PR it will merge successfully, because it already has.

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,476 views 4 7
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