GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(release): carry preview changelog into latest notes by Wibias · Pull Request #482 · lidge-jun/opencodex

Conversation

@Wibias

@Wibias Wibias commented Jul 26, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

  • Stable (latest) GitHub release notes now copy the matching vX.Y.Z-preview.* release changelog when that preview was published first.
  • Only the preview→latest delta is generated afterward (## Since preview + commits), so latest no longer ends up with an empty/near-empty body like v2.7.39.
  • Adds scripts/release-notes.ts helpers plus unit tests; release gates/permissions are unchanged.

Test plan

  • bun test tests/release-notes.test.ts tests/ci-workflows.test.ts
  • bun run typecheck
  • Local assemble simulation of v2.7.39 after v2.7.39-preview.* includes the preview What''s Changed section
  • Next real preview→latest publish: confirm latest release body carries preview notes plus any post-preview commits

Summary by CodeRabbit

  • New Features

    • Release notes now intelligently combine preview and stable release information.
    • Stable releases can include carried preview notes, “Since preview” changes, commit details, and full changelog links.
    • Release-note generation adapts to release channels and available history.
  • Bug Fixes

    • Improved handling of missing or invalid release baselines.
    • Release creation now fails safely when note generation cannot be completed.
  • Tests

    • Added comprehensive coverage for preview-note selection, cleanup, merging, and final release-note assembly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Wibias
fix(release): carry preview changelog into latest notes
ecdb943
When a matching vX.Y.Z-preview.* GitHub Release exists, stable latest notes copy that preview changelog and only append the preview-to-latest delta, instead of relying on an empty previous-stable generate-notes range.
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 26, 2026 05:42
@github-actions github-actions Bot added the bug Something isn't working label Jul 26, 2026
@coderabbitai

coderabbitai Bot commented Jul 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@Wibias, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 28 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 084de985-6a29-45e4-acac-ac677a0a6433

📥 Commits

Reviewing files that changed from the base of the PR and between 40ced9b and 11b2933.

📒 Files selected for processing (4)
  • .github/workflows/release.yml
  • scripts/release-notes.ts
  • tests/ci-workflows.test.ts
  • tests/release-notes.test.ts
📝 Walkthrough

Walkthrough

Release-note generation now carries meaningful preview content into stable releases, conditionally uses an ancestor preview tag as the notes baseline, collects commits through bounded ranges, and delegates final formatting to a new Bun helper with expanded workflow and unit-test coverage.

Changes

Release notes pipeline

Layer / File(s) Summary
Release-note helpers and CLI
scripts/release-notes.ts
Adds preview-tag matching, carried-note stripping, meaningful-content detection, note assembly, stdin/file input, and CLI commands for release-note operations.
Channel-aware workflow construction
.github/workflows/release.yml
Collects matching preview release bodies, selects an ancestor notes baseline, conditionally calls GitHub note generation, writes commit lists, and assembles the final release body with channel-aware comparison links.
Workflow and helper validation
tests/release-notes.test.ts, tests/ci-workflows.test.ts
Tests preview-note helpers and assembly behavior, plus workflow baselines, commit ranges, CLI stages, and fail-closed note generation.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ReleaseWorkflow
  participant GitHubReleases
  participant Git
  participant ReleaseNotesCLI
  ReleaseWorkflow->>GitHubReleases: fetch matching preview release bodies
  ReleaseWorkflow->>ReleaseNotesCLI: strip and collect meaningful carried notes
  ReleaseWorkflow->>Git: verify preview ancestry and collect commits
  ReleaseWorkflow->>GitHubReleases: generate notes from the selected baseline
  ReleaseWorkflow->>ReleaseNotesCLI: assemble the final release body
Loading

Possibly related PRs

  • lidge-jun/opencodex#301: Modifies the release workflow’s GitHub generate-notes and computed-notes handling.
  • lidge-jun/opencodex#364: Refactors release-note baselines, commit sections, and related workflow tests.

Suggested labels: bug

Suggested reviewers: ingwannu, lidge-jun

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: carrying preview changelog content into the latest stable release notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
fix(release): harden preview note carry for Codex review
40ced9b
Aggregate all matching preview changelogs, keep the channel baseline when carried notes are empty or the preview tag is not an ancestor, and fail closed on gh release view operational errors.
Ingwannu
Ingwannu requested changes Jul 26, 2026
View reviewed changes

@Ingwannu Ingwannu left a comment

Copy link
Copy Markdown
Owner

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking release-note omission at exact head 40ced9b5: .github/workflows/release.yml assigns newest_preview_tag before proving that the matching GitHub Release exists and has meaningful carried notes. If preview.1 has a real changelog but preview.2 is tag-only, missing its Release, or strips to comment/commits-only content, carried_any remains true while newest_preview_tag becomes preview.2. The workflow then uses preview.2 as notes_range_start, so preview.1→preview.2 changes are neither in the carried body nor in the generated delta and silently disappear from the stable release notes. Track newest_carried_preview_tag only inside the meaningful-body branch, and use that tag for the ancestry check/baseline. Add a workflow/helper regression covering meaningful preview.1 followed by missing/empty preview.2 and assert the baseline remains preview.1. The local helper tests and typecheck pass, but this missing mixed-case contract blocks release automation merge.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Wibias
fix(release): baseline only on newest meaningfully carried preview
fd83ecd
Do not advance notes_range_start to a later empty or missing preview tag after an earlier preview contributed changelog text.
@Wibias
Wibias requested a review from Ingwannu July 26, 2026 06:23
coderabbitai[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ingwannu
Ingwannu approved these changes Jul 26, 2026
View reviewed changes

@Ingwannu Ingwannu left a comment

Copy link
Copy Markdown
Owner

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the exact fd83ecd head. The baseline now advances only when a preview release body contributes meaningful carried notes, so a missing or empty later preview can no longer hide the delta after the last carried preview. The new regression cases cover both missing and commits-only bodies; focused release-note/workflow tests and TypeScript typecheck pass locally. Approved pending the remaining required CI.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Ingwannu

Ingwannu commented Jul 26, 2026

Copy link
Copy Markdown
Owner

@lidge-jun Exact head fd83ecd542666f3a3b54ccc43b04504e7af9f6d0 is approved and every required CI check is green. I attempted the maintainer merge, but GitHub rejected this OAuth token with HTTP 403 because the PR updates .github/workflows/release.yml and the token lacks workflow scope. Please perform the owner merge; I did not bypass the workflow-file protection.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
fix(release): classify preview lookup by HTTP status, not stderr
11b2933
Fail closed on auth/permission 404s, wire join-carried into the workflow, and tighten CI contract tests.
Ingwannu
Ingwannu approved these changes Jul 26, 2026
View reviewed changes

@Ingwannu Ingwannu left a comment

Copy link
Copy Markdown
Owner

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the new exact head 11b2933. The follow-up correctly distinguishes a missing preview release by HTTP 404 after a fail-closed repository-readability probe, preserves operational failures, joins carried parts through the existing helper, and normalizes commit-file newlines. Numeric same-day tag ordering is covered. Focused release-note/workflow tests and TypeScript typecheck pass locally. Approved pending the refreshed required CI; the workflow-scope owner-merge constraint still applies.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Ingwannu

Ingwannu commented Jul 26, 2026

Copy link
Copy Markdown
Owner

@lidge-jun Updated exact head 11b2933c52f2bb40baa01a396ca23c53ee303750 has now passed every required CI check and is approved. The same OAuth workflow-scope restriction prevents me from merging .github/workflows/release.yml; please owner-merge this current head.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias

Wibias commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Please merge @lidge-jun

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun
lidge-jun merged commit a7f45f3 into lidge-jun:dev Jul 26, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
Wibias deleted the fix/stable-release-notes-carry-preview branch July 27, 2026 03:54
This was referenced Aug 3, 2026
feat(release): render OpenAI-style release notes with optional LLM polish #957
Merged
fix(release): baseline preview changelogs from the prior stable #1041
Merged
This was referenced Aug 15, 2026
fix: close validated CodeQL parser and quality-gate findings #1750
Merged
fix(release): never publish an empty changelog (commit-based fallback) #1766
Merged
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
Merge pull request lidge-jun#482 from Wibias/fix/stable-release-notes…
661504a
…-carry-preview

fix(release): carry preview changelog into latest notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@Ingwannu Ingwannu Ingwannu approved these changes
@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun 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

Projects

None yet

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.

3 participants

@Wibias @Ingwannu @lidge-jun
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.