Skip to content

ci(release): prepend curated CHANGELOG notes to GitHub releases - #169

Merged
lidge-jun merged 4 commits into
mainfrom
dev
Sep 13, 2026
Merged

ci(release): prepend curated CHANGELOG notes to GitHub releases#169
lidge-jun merged 4 commits into
mainfrom
dev

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Problem

gh release create --generate-notes (release.yml publish step) meant release bodies only ever contained the auto-generated PR list — the curated CHANGELOG.md section never reached the release. v0.2.27 shipped that way (body fixed manually for that release).

Fix

  • New .github/scripts/changelog-section.cjs: extracts the ## [version] section (hyphen and em-dash date forms, exact-match so 0.2.2 never steals 0.2.20, stops at the next heading or the compare-link footer, fails closed on missing/empty sections).
  • Publish step now passes --notes-file alongside --generate-notes — GitHub prepends the curated section to the auto PR list (verified against gh 2.100.0 docs/behavior; the exclusive pair is --notes-from-tag, not --notes-file).
  • One shared create step covers both the dispatch and tag-push triggers, so both paths get curated notes.
  • changelog-section.test.cjs (8 tests incl. the real 0.2.27 section) added to the repo test script per the extracted-logic convention.

Verification

  • node .github/scripts/changelog-section.cjs 0.2.27 → prints the curated section, exit 0
  • node plugins/codexclaw/scripts/test.mjs ".github/scripts/*.test.cjs" → fail 0
  • gate.mjs → OK; actionlint: only two pre-existing SC2129 style notes outside the patch

Out of scope (noted, not changed): inputs.prerelease is unused (classify decides); the zero-asset resume path keeps first-create notes.

Made with Cursor

lidge-jun and others added 3 commits September 13, 2026 17:42
…ipped)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…se notes

Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-09-13T09:17:52.610931Z 0691c1a PR opened
ℹ️ 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.

@github-actions github-actions Bot added the chore label Sep 13, 2026
…ction tests

Co-authored-by: Cursor <cursoragent@cursor.com>
@lidge-jun
lidge-jun merged commit 9e279a4 into main Sep 13, 2026
15 checks passed
@lidge-jun
lidge-jun deleted the dev branch September 13, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant