Is there a way to customize Branch ordering algorithm for auto-merge ? Edited

Hi,

I need to create custom branch model for our needs and want to get advantage of automatic branch merging:

Branch prefix for Release: master

Branches:

- master (prod)

- master-<future-date-1> 

- master-<future-date-2> 

- master-<future-date-3> 

Auto-merge works well for branches like 'master-<future-date-X>' as this matches to Semantic versioning. 

But auto-merge doesn't work if i merge a pull request to master, it's not cascading to master-<future-date-X>... The following rule not met: 

  • Only branches matching the name of the pull request target are added into the merge path. Matching means that every token before the first numeric token must be equal to the corresponding tokens of the target branch's name.

Is there any way to customize Branch ordering algorithm for auto-merge ?

 

1 answer

1 accepted

0 vote

Hi Max! At the moment it's not possible to customize the branch ordering algorithm, right now the way it works is documented at Automatic branch merging - Ordering.

I found this feature request that might interest you, you can vote for it or comment at BSERV-3967.

Hope that helps!

Ana

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

714 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot