diff --git a/src/git_flow/command/tag.py b/src/git_flow/command/tag.py index c3b70e0..9a96526 100644 --- a/src/git_flow/command/tag.py +++ b/src/git_flow/command/tag.py @@ -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}"