Repository navigation
Never turn a published release back into a draft - #137
Merged
Merged
Conversation
Contributor
The draft release workflow edited the release for the top version of the release notes with --draft whenever it existed. If the notes are edited after that version is published, the release would become a draft again. Skip published releases.
shenxianpeng
force-pushed
the
claude/project-thread-0tp6rk
branch
from
November 1, 2026 20:33
0121193 to
1b4cc03
Compare
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.
The "Draft Release Notes" workflow runs
gh release edit "$RELEASE_TAG" --draftwhenever a release exists for the top version indocs/release-notes.md. If the notes are edited after that version is published (a typo fix before the next version's section is added), the live release would be turned back into a draft.Now the workflow checks the release state first and skips published releases. Drafts are still updated and missing ones still created. Also sets
GH_REPOsoghdoesn't depend on the checkout's remote.Related Issue
None.
Checklist
docs/about/release-notes.mdupdated (if applicable): n/a, CI onlyTesting
actionlintpasses. The same check is used in the new mkdocs-sumi draft workflow (mkdocs-ng/mkdocs-sumi#6).