adamralph / minver

🏷 Minimalistic versioning using Git tags.
Apache License 2.0
838 stars 60 forks source link

Auto increment patch part not working #948

Closed nosalan closed 8 months ago

nosalan commented 8 months ago

Version(s)

4.3.0 cli

To reproduce

The -a option (--auto-increment) does not seem to increment patch version. Works fine for minor and major: image

Expected behaviour

Maybe I'm mistaken but I was expecting the 1- to change to 2- value. If this is expected then in which cases the 1- will change? Also I'm curious hot to use only numeric approach x.x.x without the -alpha suffixes. Minver cli seems to always append it.

Actual behaviour

Nothing changes in the output.

adamralph commented 8 months ago

The current behaviour is expected. patch is the default value of --auto-increment, so supplying no argument for --auto-increment is the same as supplying patch.

Regarding the general behaviour, I suggest you read about how MinVer works. If you have a specific question, please open a discussion.

nosalan commented 8 months ago

Makes sense for me now, I was on a commit that was already tagged so it did not generate a new patch.