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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events