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: 

how to merge a branch to master on predefined date

Jutta Schwengsbier
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!
May 4, 2019

I want to publishsome  branches on certain dates automatically to master.

How best to do this?

Thank you

Asks

 

Jutta

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 7, 2019

Hello Jutta and welcome to the Community!

Automatically merging a branch may sound like a good idea, as long as there are no conflicts or issues with the merge all should be well. While using git you should be present when you merge your branch back, you most certainly can script your git cmd to merge this for you. You will need to set up a Windows scheduled task or a Linux CRON job to execute the script when ready.

I was able to find a script that someone developed for auto releasing your code. (Please note this code has not been tested or confirmed in a working state by use, this is mainly used as a reference). You can review what they’ve done and created your own script to merge your branch when ready. You may find this sample script at A script to automate the merging of release branches.

I hope this proves helpful and you’re able to auto-merge your branches when you need.

Regards,
Stephen Sifers

TAGS
AUG Leaders

Atlassian Community Events