Skip to content

Mainline Merge from Hotfix to main does not increment version with custom merge commit message #3649

Answered by HHobeck
sharpSteff asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there. ;)

Expected Behavior
The version at main increments regardless of a message merge message

If you think about it: This expecation is unrealstic. How would you determine the information where the merge comes from without putting it in the commit message?

If you have custom merge message format you need to specify it in GitVersion.yml configuration. The documentation says:

merge-message-formats

Custom merge message formats to enable identification of merge messages that do not
follow the built-in conventions. Entries should be added as key-value pairs where
the value is a regular expression.
e.g.

merge-message-formats:
    tfs: '^Merged (?:PR (?<PullRequestNumber>\d+)): Merge (?…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sharpSteff
Comment options

Answer selected by sharpSteff
Comment options

You must be logged in to vote
1 reply
@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
2 participants
Converted from issue

This discussion was converted from issue #3648 on August 08, 2023 16:18.