You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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.
Izymes - Empowering Teams