aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
493 stars 181 forks source link

Hotfix finish should not necessarly bump to next development version #230

Closed rostskadat closed 3 years ago

rostskadat commented 4 years ago

Description:

Imagine you have a project with a master branch whose last release is 1.0 and a development branch whose current branch is 1.1-SNAPSHOT. Doing a succession of hotfix-start / hotfix-finish with the successive version 1.0.1, 1.0.2 ...1.0.n will erroneously increment the development snapshot to 1.2-SNAPSHOT, 1.3-SNAPSHOT, etc..

Steps To Reproduce:

1- Start and then finish several hotfix on the TestProject 2- Each time you finish the hotfix the development version is also incremented.

Expected Result:

I would expect the hotfix-finish goal to: Consider that if the hotfix version is less than the development version then the development should not be bumped to the next development version.