Skip to content

ci(release): publish release notes after the leak check - #2046

Merged
sv merged 1 commit into
mainfrom
ci/publish-release-notes
Nov 29, 2026
Merged

sv merged 1 commit into
mainfrom
ci/publish-release-notes

Conversation

@sv

@sv sv commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

stage-release.sh created every release as a draft and left publishing to a person. Nobody did, and 22 drafts for versions already on the registries piled up (all published by hand on 2026-11-29). Each release now publishes as soon as its notes pass the existing checks:

  • the source repository is allowlisted for the service
  • the version format is valid
  • the notes are not blank
  • the notes name no private repo, internal host or IP address

A draft left by an earlier run is updated and published in place. A release that is already published is still refused, so published notes never change. Releases still pass make_latest: "false", so the Latest badge stays where a person puts it.

The file and workflow names stay the same, so the pinned caller in the source repository keeps working.

Evidence

$ .github/scripts/stage-release.test.sh
ok   first run publishes a release on its own commit
ok   an earlier draft is updated and published
ok   a rejected notes commit is retried
ok   three rejected commits stop the run
ok   published release is refused
ok   unlisted source is refused   (+ 6 more refusal cases, all ok)

How to undo

Revert this commit, and new notes go back to being staged as drafts. Releases published while this change was live stay published, and their tags stay. Deleting one removes it from the feed and from the API, but subscribers have already been notified.

Notes were staged as drafts and waited for a person to publish them; 22 drafts piled up. The script now publishes each release once its checks pass, and publishes a draft left by an earlier run in place. A published release is still never changed, and Latest is not moved.
@sv
sv marked this pull request as ready for review November 29, 2026 02:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T02:36:36.605145Z cc57f7b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sv
sv merged commit 925c9c1 into main Nov 29, 2026
1 check passed
@sv
sv deleted the ci/publish-release-notes branch November 29, 2026 02:39
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