Skip to content

Never turn a published release back into a draft - #137

Merged
shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-0tp6rk
Nov 1, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-0tp6rk

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

The "Draft Release Notes" workflow runs gh release edit "$RELEASE_TAG" --draft whenever a release exists for the top version in docs/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_REPO so gh doesn't depend on the checkout's remote.

Related Issue

None.

Checklist

  • New tests added for new behavior (if applicable): n/a, workflow only
  • Documentation updated (if applicable): n/a
  • Release notes docs/about/release-notes.md updated (if applicable): n/a, CI only

Testing

actionlint passes. The same check is used in the new mkdocs-sumi draft workflow (mkdocs-ng/mkdocs-sumi#6).

@shenxianpeng shenxianpeng self-assigned this Nov 1, 2026
@codspeed

codspeed Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 29 untouched benchmarks


Comparing claude/project-thread-0tp6rk (1b4cc03) with main (d69096b)

Open in CodSpeed

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
shenxianpeng force-pushed the claude/project-thread-0tp6rk branch from 0121193 to 1b4cc03 Compare November 1, 2026 20:33
@shenxianpeng
shenxianpeng merged commit 7016c72 into main Nov 1, 2026
22 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-0tp6rk branch November 1, 2026 20:42
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