Skip to content

Develop minor version is bumped when merging a feature branch with a major version number #1519

@DOMZE

Description

@DOMZE

Hello,

I have a question on GitVersion. In the scenario shown in the diagram below, how come the minor version is bumped when the feature branch is merged back into develop?

I would expect the version in develop to stay the same as there's no release branches associated with 2.0.0 and no tags in develop with 2.0.0

flow

Does the tool automatically update the minor version on the next commit when it is tracking a release branch (regardless of the version)?

For information this is my GitVersion.yml

mode: ContinuousDeployment branches: {} ignore: sha: []

Using GitVersion 4.0.0

Git commands to reproduce the behavior:

git init
gitversion init (selecting, 5,2,0)

git add GitVersion.yml; git commit -m "Initial commit"; git checkout -b develop;
git commit -m "First commit in develop" --allow-empty
git checkout -b release/1.0.0
git commit -m "bugfix in release/1.0.0" --allow-empty
git checkout develop; git checkout -b feature/2.0.0;
git commit -m "first commit in feature/2.0.0" --allow-empty;
git checkout develop
git merge feature/2.0.0 --no-ff

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions