Skip to content

How to configure GitVersion to work with 'Trunk Based Development' using 'Branch for Release' #3387

Answered by sheppyh
sheppyh asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I've figured it out, and trunk-based development with release branches is easily supportable with minimal config changes.

The key was in the following PR: Bump develop when release branch created #832

Develop gets bumped when a release branch is created, therefore tags on the release branch are not actually necessary to get that bump. Two major things I was doing wrong:

  1. Incorrect release branch naming
    release-1.0.x is not recognised as a correct version, whilst nice to say to a human "this branch contains releases for the major/minor 1.0.x" - it's not understood by GitVersion in the same way. You need to name the branch release-1.0.0 and live with the fact that you will have a 1.0…

Replies: 16 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by HHobeck
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ncook-hxgn
Comment options

@HHobeck
Comment options

@HHobeck
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3357 on February 20, 2023 15:32.