bugfix: revertir guion entre version y entorno, agregar guion a sufijo

This commit is contained in:
Jonathan Teran
2025-12-04 10:17:26 -03:00
parent 053b8b102b
commit 7ce6addf07
+2 -2
View File
@@ -91,7 +91,7 @@ class TagCommand(Command):
tag = Git.get_current_tag() or f"v0.0.0-{branch}"
until_dash = tag.index("-") if "-" in tag else None
suffix = tag[until_dash + 1 :] if until_dash is not None else ""
suffix = tag[until_dash:] if until_dash is not None else ""
[major, minor, patch] = map(int, tag[1:until_dash].split("."))
if increment == SEMVER_MAJOR:
@@ -104,4 +104,4 @@ class TagCommand(Command):
elif increment == SEMVER_PATCH:
patch += 1
return None if increment == SEMVER_SKIP else f"v{major}.{minor}.{patch}-{suffix}"
return None if increment == SEMVER_SKIP else f"v{major}.{minor}.{patch}{suffix}"