Skip to content

Merge message parser does not work for merge commits created by TFS #1628

@kelly987654

Description

@kelly987654

TFS automatically prepends the PR# to the merge commit message, which prevents the Regex matches of merge commit messages to properly detect the base version.

For ex. if the PR title is 'Merge release/2.3.1 to master', the merge commit automatically created by TFS on completion of the PR is 'Merged PR 12345: Merge release/2.3.1 to master'

Expected version: 2.3.1+0
Actual version: 2.3.1+688

Removing the '^' at the beginning of the Regex expressions in MergeMessage.cs would fix the issue.

This issue appeared after updating to GitVersion 4, we did not have this issue in version 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions