Forums

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

Prevent merging pull requests to master from outdated branches

bielertc
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!
November 7, 2019

Scenario: Someone creates a pull request from branch foo to master. The automatic tests on this pull request pass. Before the pull request from foo is reviewed and merged, the master is updated independently. The changes to master don't create merge conflicts, so the Merge button remains available. However, when performing the automatic merge, this leads to a broken application. Now the automatic tests fail on the master branch.

Is there a way to disable the merge button (or show a warning) from any PR to master, if the branch that is being merged is not up to date with master?

1 answer

0 votes
borN_free June 23, 2021

If anyone found a plugin, please share. Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events