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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

25,649 views 26 12
Join discussion

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