Skip to content

fix: include prerelease notes in stable releases - #11246

Merged
marius-kilocode merged 1 commit into
mainfrom
sprout-principal
Jun 15, 2026
Merged

fix: include prerelease notes in stable releases#11246
marius-kilocode merged 1 commit into
mainfrom
sprout-principal

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Prerelease publishing consumes each batch of changesets into its own changelog section. Stable publishing currently copies only the newest section, so changes already shipped through the prerelease channel disappear from the final release summary.

Keep prerelease notes scoped to their own version, but build stable notes from the current version and every published, non-draft prerelease since the previous stable release. Draft and unpublished changelog sections remain excluded, and the existing No notable changes fallback is preserved.

@kilo-code-bot

kilo-code-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • script/kilocode/release-notes.ts - New module extracting release notes logic; correctly aggregates current version + published prereleases since last stable
  • script/kilocode/release-notes.test.ts - 4 well-structured tests covering prerelease, stable, empty-section, and fallback scenarios
  • script/publish.ts - Simplified to delegate to publishNotes, removing 35 lines of inline logic

Verification Notes

The buildNotes logic was traced against test expectations:

  • Prerelease path: Returns only the current version's section body (line 19)
  • Stable path: Finds the most recent previous stable release (lines 21-27), collects all published non-draft prereleases since that stable (lines 28-36), and joins matching changelog sections (lines 37-40)
  • Edge cases: Empty current section includes prereleases (tested line 38-47), missing sections fall back to "No notable changes" (tested line 49-56)
  • Fork hygiene: New files in script/kilocode/ (Kilo-owned). Changes to shared script/publish.ts contained within kilocode_change markers.

Reviewed by deepseek-v4-pro-20260423 · 265,862 tokens

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 583bef0 into main Jun 15, 2026
19 checks passed
@marius-kilocode
marius-kilocode deleted the sprout-principal branch June 15, 2026 11:41
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix: include prerelease notes in stable releases
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.

2 participants