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
490 stars 182 forks source link

incrementVersionAtFinish problem #288

Closed alapierre closed 3 years ago

alapierre commented 3 years ago

I have in my pom.xml:

<configuration>
                    <incrementVersionAtFinish>true</incrementVersionAtFinish>
</configuration>

when I use feature name with number in it, like eg. FR-10 plugin increment wrong digit

current version is: 1.1.1-SNAPSHOT

mvn gitflow:feature-start What is a name of feature branch? feature/: FR-10

now version is: 1.1.1-FR-10-SNAPSHOT (OK, like expected)

mvn gitflow:feature-finish

now version on develop is: 1.1.1-FR-11-SNAPSHOT (is NOT OK, should by 1.1.2-SNAPSHOT)

[INFO] Fetching remote branch 'origin feature/FR-10'.
[WARNING] There were some problems fetching remote branch 'origin feature/FR-10'. You can turn off remote branch fetching by setting the 'fetchRemote' parameter to false.
[INFO] Fetching remote branch 'origin develop'.
[INFO] Comparing local branch 'develop' with remote 'origin/develop'.
[INFO] Checking out 'feature/FR-10' branch.
[INFO] Cleaning and testing the project.
[INFO] Updating version(s) to '1.1.1-FR-11-SNAPSHOT'.
[INFO] Committing changes.
[INFO] Checking out 'develop' branch.
[INFO] Merging (--no-ff) 'feature/FR-10' branch.
[INFO] Pushing 'develop' branch to 'origin'.
[INFO] Deleting remote branch 'feature/FR-10' from 'origin'.
[WARNING] There were some problems deleting remote branch 'feature/FR-10' from 'origin'.
[INFO] Deleting 'feature/FR-10' branch.
aleksandr-m commented 3 years ago

@alapierre Fixed. Thank you for reporting.

aleksandr-m commented 3 years ago

1.16.0 is released.