Repository navigation
build: list each change once in the GitHub release notes - #2405
Conversation
The generated Package Changes repeated every package's CHANGELOG.md section, so a change listed in several packages appeared several times: 148 entries for 0.2.0's 100 changes, a 114,156-character body against GitHub's 125,000 limit. They now list each change once, under its highest bump, after the packages it changes: 79,144 characters for the same release. Past the limit, the block omits patch changes before minor ones, the longest first, and names the CHANGELOG.md files that hold them; it never omits a breaking change. The website changelog reads the new shape and still reads v0.1.0's per-package one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🔵 Needs a closer look
A releaser must confirm the live dry-run release-body output and the required merge ordering before #2226, which cannot be reproduced or verified here.
No open issues 🎉
What changed in this PR
This PR reworks the GitHub Release body generator so each change is listed once (under its highest semver bump, after the packages it changes) instead of repeating every package's full CHANGELOG.md section. For 0.2.0 this cuts the generated body from ~114k to ~79k characters, well under GitHub's 125,000-character limit. When a body still would not fit, it now omits individual changes (patch before minor, longest first), never a breaking one, leaving a one-line pointer to the relevant CHANGELOG.md files; if only breaking changes plus maintainer notes still overflow, it fails loudly as before. The website changelog parser is updated to read the new shape while still parsing the legacy per-package shape used by v0.1.0.
Changes:
scripts/release-github.mjs: replaces per-package section collection withcollectReleaseChanges/parseChangelogEntries, renders a per-bump list with package prefixes, and switches the fit/omit strategy to per-change (breaking-aware), renamingomittedPackages→omittedChanges.apps/website/app/changelog/releases.ts: parses the new#### Minor Changes+- \@pkg`, …:format (newPACKAGESregex,item.packages,####?` heading match) while retaining legacy parsing.- Docs and tests updated to describe and cover the new block, its omission fallback, and backward compatibility.
Verification performed: removed helpers (collectPackageChangeSections, normalizeChangelogSection, renderPackageChangeSection, omittedPackageChangeStub, etc.) have no remaining references; scripts/release.mjs does not consume the renamed return field; new/old format parsing and the fit/omit logic round-trip correctly against the tests; both JS files pass node --check; referenced ADR/anchor targets exist; and the no-changeset claim is consistent (@zitadel/website is private and in the Changesets ignore list, and scripts/ is not a published package). No objective defects found.
| File | Description |
|---|---|
scripts/release-github.mjs |
Core rewrite: collect/parse/dedup changes, per-bump rendering with package prefixes, breaking-aware omission, renamed result field. |
scripts/release-github.test.mjs |
Rewrites fixtures/assertions for collectReleaseChanges, parseChangelogEntries, and the new omission behavior; adds a breaking-change-too-long failure test. |
apps/website/app/changelog/releases.ts |
Parses the new single-listing format and still the legacy per-package format; adds PACKAGES regex and item.packages. |
apps/website/app/changelog/releases.spec.ts |
Adds new-format body fixture plus a legacy (≤0.1.0) fixture and asserts both parse to identical changes. |
docs/runbooks/manual-release.md |
Updates the runbook to describe the new block and its omission/fail-loud fallback. |
Review effort: Balanced
Summary
The generated
### Package Changesin each GitHub Release repeated every package's CHANGELOG.md section, so a change listed in several packages appeared once per package. For 0.2.0 that is 148 entries for 100 changes, and a 114,156-character body: 10,844 under GitHub's 125,000 limit before any maintainer notes (0.1.0's were about 6.6k).Merge this before the version PR #2226. The v0.2.0 draft release is written when #2226 merges, so it gets the new format only if this lands first. #2226 itself needs no change: it adds no changesets.
scripts/release-github.mjsnow lists each change once, under its highest bump, after the packages it changes:@zitadel/server-<platform>packages and stripsUpdated dependenciesblocks.CHANGELOG.mdfiles that hold them. A major, or a change that mentions**Breaking:**, is never omitted. If the notes and the breaking changes alone don't fit, the update fails loudly, as before. Today's fallback swaps whole package sections for pointers, the largest first. For 0.2.0 that would be@zitadel/server's ~42k section, which holds every server, console and login change, breaking ones included.apps/website/app/changelog/releases.tsreads the new shape and still reads the per-package one, which v0.1.0's published body uses. The spec's main fixture is the script's own output, byte for byte, and the old fixture stays as the per-package case.docs/runbooks/manual-release.mddescribes the new block and its fallback.Validation
vitest run scripts/release-github.test.mjs: 17 passed.moon run workspace:test: 71 passed.moon run website:typecheck website:lint website:test: pass (22 tests).website:buildpasses too.biome checkon the changed files: clean.main. The head of build: version packages #2226 (4cf2adc6a, one commit on top ofmain'sfbec087ca) holds their CHANGELOG.md sections. On that checkout I wrote the metadata withwriteReleaseMetadata, then ranupsertProductGithubRelease({ dryRun: true }). That is the steprelease publish --dry-runends with, without building binaries or images first.main's parser and this one.Release notes / changeset
No changeset required — no shipped behavior changed. The script is release wiring, and the website is not versioned (it is in the Changesets
ignorelist).node scripts/check-changesets-status.mjs --base origin/mainagrees.Notes
**Breaking:**mention as breaking, where the website marks only a paragraph that starts with it. So it errs toward keeping a change./changelog.🤖 Generated with Claude Code