GeezerVison is showing github.com — fix(release): full channel changelog in GitHub release notes by Wibias · Pull Request #364 · lidge-jun/opencodex
Conversation
Wibias
commented
Jul 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Release notes for both preview and latest now keep GitHub
generate-notes PR categories and append a ## Commits section from the channel-scoped previous tag (branch merges + direct commits that PR-only notes omit).
- Create and edit paths both use the same
--notes-file body so republishing a tag gets the same full notes.
- Contract test asserts the commits log and that
--generate-notes is no longer used alone on create.
Test plan
-
bun test tests/ci-workflows.test.ts
- Next preview/latest
workflow_dispatch publish: verify release body has PR categories, Commits list, and Full Changelog compare link
Summary by CodeRabbit
-
Improvements
- GitHub releases now consistently generate complete release notes from pull request content using a dedicated notes document.
- Notes include a regenerated single “Full Changelog” compare link and a curated “Commits” section for the relevant range.
- Release creation behavior is now uniform, with prerelease handling supported and tagging performed after notes are assembled.
-
Tests
- CI assertions were expanded to verify the release-notes generation flow, commit formatting/range, and that note-generation failures are not silently ignored.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
generate-notes is PR-only, so preview/latest changelogs missed branch merges and direct commits; append the full channel git log for both create and edit paths.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Address CodeRabbit: require generate-notes success, always create (preflight already blocks existing releases), keep a 100-commit cap only for first-channel history, and tighten workflow contract tests.
Avoid leaving a remote tag when generate-notes fails; preflight would otherwise block retries after a partial publish.
Dual review (security + bugs/edge cases)
CodeRabbit threads addressed on 355320d0 (see disposition below). Independent second look after those fixes.
CodeRabbit disposition
| Finding |
Action |
Fail closed on generate-notes (|| true) |
Fixed — API failure aborts the step |
Remove --max-count=100 on first-channel history |
Declined — no previous channel tag means unbounded repo history; keep a 100-commit cap to stay within GitHub release body limits. Channel deltas (the normal path) remain uncapped via ${previous_tag}..${GITHUB_SHA} |
Unreachable gh release edit vs preflight |
Fixed — edit path removed; create-only matches preflight |
| Strengthen contract tests |
Fixed — create/commit_range/no-edit/no-soft-fail assertions; notes-before-tag order check |
Extra fix from this review: assemble notes before git tag/git push so a notes API failure does not leave a remote tag that preflight then blocks on retry.
Security
Verdict: merge-ready for security (no blockers).
Checked:
- Inputs still reach the shell only via
env: (no ${{ inputs.* }} in run:)
- No permission / token scope expansion; still
contents: write + github.token
- Fail-closed notes improves metadata integrity vs silent empty PR categories
- Create-only removes the only path that could overwrite an existing release’s notes
- Commit subjects in notes are ordinary public changelog risk (merge + maintainer dispatch); not newly elevated
Bugs / edge cases
Verdict: merge-ready after the notes-before-tag reorder. Remaining residuals are operational, not blockers:
- npm may already be published if the GitHub Release step fails later (pre-existing ordering: Publish → registry smoke → Create release). Manual
gh release create recovery still needed in that case; not introduced here.
- HTTP 200 with empty
body from generate-notes still creates a release with Commits + compare link only. Acceptable; true API failures fail closed.
- PR section + Commits section overlap (merge commits / PR titles appear twice) is intentional for the “full channel log” goal.
Checks
bun test tests/ci-workflows.test.ts green locally after both follow-ups
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Omitting previous_tag_name lets GitHub baseline the newest repo tag, which can be the other channel on a first preview/stable cut. Use commits-only notes in that case.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 24, 2026
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…l-changelog
fix(release): full channel changelog in GitHub release notes
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Ingwannu
Awaiting requested review from Ingwannu
Ingwannu is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|