Block pull request before rebase from master

aviv_cohen March 7, 2021

Hi, 

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

0 votes
Eddie Webbinaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2021

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

Atlassian Community Events