feature: include revlist count in version tag when skipping bump

This commit is contained in:
jt
2026-05-17 11:37:04 -03:00
parent 9b5584bbfe
commit d275ac08f3
+2
View File
@@ -104,5 +104,7 @@ def get_next_tag_from_commits(commits: list[str], branch: str) -> str | None:
patch = 0
elif increment == SEMVER_PATCH:
patch += 1
elif increment == SEMVER_SKIP:
suffix = "-r" + Git("rev-list", "HEAD", count=True).firstline()
return None if increment == SEMVER_SKIP else f"v{major}.{minor}.{patch}{suffix}"