Gitflow and automatic merges from releases to develop branch?

We're using the gitflow branching model. Is there a way to tell stash to auto-merge release/ branches into my develop branch?

I've turned on the branching model settings and sent my development branch and release/ prefix to match. When pull requests come in and I approve them, it will automatically merge to the release/ branch, but it doesn't cascade down to develop. Is there a way I can do this?

I turned on "Enable automatic merging" in the hopes that it'd do the trick, but it doesn't seem to have done anything. I was thinking it'd be nice to keep our develop branch merged so that there are no nasty conflicts to merge at the end. I know that using the gitflow branching model, you're not expected to leave the release branch open for a long time and it should just be for the last minute fixes, but we work on more than one release at a time. Should we abnadon the 'develop' branch and instead start naming with version numbers so that the cascading, automatic merges work? Or did we just not set this up right?

1 answer

This widget could not be displayed.
Jason Hinch Atlassian Team Mar 17, 2014

In order for the cascading merges to work you'll need to change the 'default branch' of the repository to 'develop' in the general settings for the repository. A preview of the cascading merge should appear as part of the merge dialog for the pull request so you can verify this works before merging your pull request.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

64 views 2 3
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