feat(release): support X.Y.Z-beta-N pre-release tags#54
Merged
Conversation
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.
Adopt
X.Y.Z-beta-N(e.g.v1.21.0-beta-1) as the fork's pre-release naming, beta-only going forward, alongside the existing PEP 440 (rcN/bN) and dashed-dot (-beta.N) forms.Changes
prune_prereleases.py— match a hyphen or dot before the number (-beta-Nas well as-beta.N), so a published stable prunes its-beta-Npre-releases. One-char regex change ((?:\.\d+)?→(?:[-.]\d+)?).first_launch.py: parse_changelog_section— match a changelog/WHATS_NEW header by parsed PEP 440 version, so a[1.21.0-beta-1]header (setuptools-scm bakes the tag into the app as1.21.0b1) matches a1.21.0b1runtime; string fallback kept for non-version headers ([Unreleased]).Notes
whats_new_contentalready matches by parsed version. This only hardens the currently-unusedparse_changelog_sectionhelper so it can't become a footgun.Classify releasealready treats non-vX.Y.Ztags as pre-release, and the release-notes step + updater asset parsing already handle the verbose tag string.-beta-Nform in both the prune selector and the changelog matcher.