You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a tag 1.2.3-rc1 on a commit, and all internal QA testing has passed, I want to be able to say that the same commit is now 1.2.3, without a specific bump commit. (I'd prefer to just push a tag to start release process, rather then merge a bump to main and sync with prod).
Steps to reproduce
Put two tags (1.2.3-rc1 and 1.2.3) on the same commit
Generate a changelog with --merge-prerelease
Current behavior
Commits gets grouped under 1.2.3-rc1.
Desired behavior
I would expect precedence of tags on same commit to be 1.2.3-rc1 < 1.2.3.
SemVer 1.0 specification does not seem to say anything about precedence for .dev versions, but I would expect them to be 1.2.3-rc1.dev1 < 1.2.3-rc1.dev2 < 1.2.3-rc1 < 1.2.3, but I'm not sure about that one.
Screenshots
No response
Environment
commitizen version 3.22.0
python version 3.8.10
os Ubuntu 20.04 on WSL
The text was updated successfully, but these errors were encountered:
Seems like the problem is due to how git sorts normal tags, since they contain no date/time of the actual tag, just the commit it is attached to. If I use annotated tags it works as expected.
Description
If I have a tag
1.2.3-rc1
on a commit, and all internal QA testing has passed, I want to be able to say that the same commit is now1.2.3
, without a specific bump commit. (I'd prefer to just push a tag to start release process, rather then merge a bump to main and sync with prod).Steps to reproduce
1.2.3-rc1
and1.2.3
) on the same commit--merge-prerelease
Current behavior
Commits gets grouped under
1.2.3-rc1
.Desired behavior
I would expect precedence of tags on same commit to be
1.2.3-rc1
<1.2.3
.SemVer 1.0 specification does not seem to say anything about precedence for .dev versions, but I would expect them to be
1.2.3-rc1.dev1
<1.2.3-rc1.dev2
<1.2.3-rc1
<1.2.3
, but I'm not sure about that one.Screenshots
No response
Environment
commitizen version 3.22.0
python version 3.8.10
os Ubuntu 20.04 on WSL
The text was updated successfully, but these errors were encountered: