Repository navigation
chore: keep previews and an older line's tag off GitHub's Latest - #48
Merged
Merged
Conversation
release.yml now publishes a preview with --prerelease --latest=false, and a stable tag with --latest=false when the current Latest release is newer by sort -V, so a 10.x patch tagged after 11.0.0 leaves Latest on the 11 line. Ported from CodoMetis.ValueRanges' release workflow. ReleaseWiringConventionTests reads the step's script lines, not its comment, and checks each flag sits on its own branch. Closes #44 Co-Authored-By: Claude Opus 5.5 <[email protected]>
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 18, 2026
Brings in #45 (tracking culture, two supported lines), #48 (Latest handling) and #53 (Dependabot build-only pins). Conflicts: ChangelogConsistencyTests, PackagingConventionTests and SecurityPolicyConsistencyTests, all resolved to main. 2085324 added a SemanticVersion harness type here so the convention tests could read 11.0.0-preview.1; #45 solved the same problem on main with ReleaseVersion (prerelease parsing, SemVer precedence, the "## <version>" heading with a suffix) and made the security-policy checks aware of two lines. SemanticVersion is unused after the merge and is removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #44
Stacked on #45: the CONTRIBUTING.md "Releases on two lines" section this PR extends exists only there. Merge #45 first; this PR then retargets to
main, which is when CI and the PR hygiene check run on it.Problem
release.ymlpassed--prereleasefor a version with a-suffix and otherwise let GitHub decide, and GitHub marks every new release Latest. With two supported lines, av10.xpatch tagged afterv11.0.0would take Latest and point the repository page at the LTS line, and a preview relied on the API refusing to make a prerelease Latest.Change
.github/workflows/release.yml, step "Create the release if it does not exist": a preview gets--prerelease --latest=false. A stable tag gets--latest=falsewhen the current Latest release (taglessgh release view --json tagName) is newer bysort -V. Otherwise it becomes Latest, as does the first release when none exists. Ported from CodoMetis.ValueRanges' release workflow; this file's structure and comments are kept.ReleaseWiringConventionTests: new testGithub_release_keeps_an_older_line_and_previews_off_latest. It reads the step's script lines (comments dropped, since the comment states both rules) and checks the order: the preview flags inside the*-*branch,--latest=falseinside thesort -Vguard in theelsebranch, andgh release createpassing"${flags[@]}".ReleaseWiringConventionTestsrow names the new check. CONTRIBUTING.md: a "GitHub's Latest release" bullet under "Releases on two lines".Tests
dotnet test … --filter "TestCategory!=Integration": 337 passed.release.yml, restored after each. Each of these fails the new test: preview reduced to--prerelease, the older-line--latest=falseremoved, thesort -Vguard removed with--latest=falsemade unconditional for stable tags, and"${flags[@]}"dropped fromgh release create.gh: 10.0.3 with Latest v11.0.0 →--latest=false; 11.0.1 with Latest v11.0.0 → becomes Latest; 11.0.0-preview.2 →--prerelease --latest=false; no Latest yet → becomes Latest; 10.0.10 with Latest v10.0.9 → becomes Latest (version sort, not string sort).🤖 Generated with Claude Code