Forums

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

Can you create a merge check on a pull request that verifies the target branch has not been updated?

Rob Benton March 1, 2022

I see there is a merge check available that verifies no further have been made to the source branch since the pull request was created. But is there a way to create a merge check that will prevent a pull request is the target branch is ahead of the source branch? For example if the source branch is feature/1 and the target branch is master. But master has had a commit on it since feature/1 was branched from it.

1 answer

1 accepted

0 votes
Answer accepted
Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
March 1, 2022

Hi Rob,

welcome to the community!

If I understand your question correctly you are looking to block pull requests that would result in a non-trivial merge, i.e. both source and target branch had independent commits?

As far as I know there is no such merge-check built into BB Cloud. Here is a ticket for Atlassian to allow custom merge-checks so that developers could implement merge-checks like this.

At first I thought you could use repository forks and keep them synch'ed automatically - but that's only available in Bitbucket server/dc. See https://jira.atlassian.com/browse/BCLOUD-17624 as a feature request.

Best, Ulrich

Izymes - Empowering Teams

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events