Skip to content

Merging from develop to feature branch causes MinorPatch to change #1525

@DOMZE

Description

@DOMZE

Starting with a clean master branch with only a GitVersion.yml config file

The following scenario, after merging develop into feature/featureA causes gitversion (in feature/featureA) to display 1.1.1 as MajorMinorPatch. I would expect it to stay at 1.2.0 or move to 1.3.0 if there's a release branch (release/1.2.0) created

Flow:
bug

Git commands to reproduce issue

git tag 1.1.0
git checkout -b develop
git commit -m "commit in develop" --allow-empty # 1.2.0-alpha.1
git checkout -b feature/featureA
git commit -m "commit in featureA" --allow-empty # 1.2.0-featureA.2
git commit -m "commit in featureA" --allow-empty # 1.2.0-featureA.3
git checkout develop
git commit -m "commit in develop" --allow-empty # 1.2.0-alpha.2
git commit -m "commit in develop" --allow-empty # 1.2.0-alpha.3
git checkout feature/featureA # 1.2.0-featureA.3
git merge develop --no-ff

Using GitVersion 4.0.0 and ContinuousDeployment in all branches

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions