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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.