Open emulanob opened 3 weeks ago
Hey! Thanks for the post, I'll have a look at it tomorrow. Seems like a pretty fundamental issue.
Could you elaborate more on the hierarchy you mentioned?
Thanks for looking into this!
With hierarchy I meant that, if you have more than 1 positive match, the higher one should be bumped. e.g.:
git commit -m "[breaking] [feature] [hotfix]" --amend
Since all 3 parts of the semver have a positive match in this string, the one to be bumped should be the Major.
Hey there!
I spent quite a few hours today testing the git-commit mode. My goal was to determine the easisest way for my team to have "regular" minor version releases and keep the ability to bump the major version when needed by prefixing the commit message.
I ended up noticing inconsistent version predictions.
For example, given the following semver config:
and the following commit message:
I got 3 different predictions in 3 tries.
So maybe when this gets fixed there could also be a way to enforce hierarchy in the matching? Which in my opinion should always go major --> minor --> patch.
Thanks!