Skip to content

Preserve alpha release tags in GitVersion - #582

Merged
shanselman merged 1 commit into
masterfrom
fix/gitversion-alpha-tags
May 29, 2026
Merged

Preserve alpha release tags in GitVersion#582
shanselman merged 1 commit into
masterfrom
fix/gitversion-alpha-tags

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

Summary

  • configure GitVersion's main branch label so exact vX.Y.Z-alpha.N tags resolve to the tagged SemVer
  • add a tag-build guard that fails if GitVersion output disagrees with the tag name
  • add a regression test for the GitVersion main-branch alpha contract

Validation

  • ./build.ps1
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
  • git diff --check

Configure the main branch with the alpha label so GitVersion treats vX.Y.Z-alpha.N tags as exact release versions instead of deriving unlabeled commit counts from the last stable tag.

Add CI and test guardrails to catch tag/version drift before release artifacts are published.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@shanselman
shanselman merged commit 32e6025 into master May 29, 2026
18 of 19 checks passed
@shanselman
shanselman deleted the fix/gitversion-alpha-tags branch May 29, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant