The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Automated Merge Between Two Branches

Karthik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2022

We use bitbucket and as per my use case we have two release branches R1 and R2. All  members of our team commit their changes to R1, however we have a business requirement to have a release branch R2. We use a pull request to merge R1 with R2 every day. Is it possible to set up an automated merge simply for these branches? We don't want automatic merge to impact other release and feature branches. Can I use the feature of bit bucket "Automatic merge"  for my use case?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
September 22, 2022

Hello @Karthik , welcome!

You are looking for automatically propagating changes that are merged to R1 to R2 every day.

I can see 2 options:

  1. You can use the aforementioned automatic branch merge feature in Bitbucket under the conditions 
    * R1 and R2 actual naming follows semantic versioning.
    * You have a branching model enabled in the repository
    This way you could merge to R1 and the changes will also be merged into R2

  2. Create and merge pull requests via a script that runs daily using the Bitbucket server rest api

Hope that helps!

Cheers Ulrich

// Izymes - our mission is to eliminate boring from work. We build apps that turbo-charge team velocity through contextual automation.

TAGS
AUG Leaders

Atlassian Community Events