Skip to content

Keep release tags visible beside branches with the same name - #398

Merged
tony merged 1 commit into
mainfrom
release-tags-only
Dec 6, 2026
Merged

tony merged 1 commit into
mainfrom
release-tags-only

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #395.

Closes #397.

What changed

The version picker can offer a branch named v9.8.7 as a release. A branch named v0.1.1 can also hide the published Lua release with that name. Read the full Git ref when choosing the default version and the target of next. Maintenance branches such as v1.x keep their own entries.

The version tests use ordinary branches for the real checkout. One commit has a fixed offset of +05:30 so the test can check that the manifest preserves its date across Git versions.

Checks run

  • Ran the version tests on Linux ARM64 in 2.77 seconds. The regression reproduced the wrong default on the original generator.
  • Compared the whole manifest with the genuine Lua and Rust release tags. Adding a same-name branch kept the version, release date and default selection for each published tag.
  • Ran the five affected website suites in 17.45 seconds, the version guard, changed-file lint, and the Astro type check.
  • The original checkout test failed on Git 2.56.1, which prints UTC as Z. All 172 tests across the five affected suites passed on both Git 2.43.0 and Git 2.56.1 with the fixed-offset commit. Original GitHub run.

@tony tony added the no-preview Run CI without publishing a PR preview. label Dec 5, 2026
@tony
tony force-pushed the release-tags-only branch from 917f364 to db0aa38 Compare December 5, 2026 22:02
why:
A branch named like a release could become the default or hide the
real tag for that release.

what:
- Read tags and maintenance branches using their full Git ref names.
- Check version selection with an ordinary checkout, release names, and
  publication dates.
@tony
tony force-pushed the release-tags-only branch from db0aa38 to c2d15fd Compare December 6, 2026 00:20
@tony
tony added this pull request to stack #400 December 6, 2026 01:08
@tony
tony removed this pull request from stack #400 December 6, 2026 06:14
@tony
tony merged commit 972ff12 into main Dec 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-preview Run CI without publishing a PR preview.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The version picker can mistake a branch for a release or hide a real tag Test website version selection without creating Git tags

1 participant