Repository navigation
fix(scripts): keep every paragraph of a multi-paragraph changelog entry - #4999
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
cixzhang
enabled auto-merge (squash)
August 13, 2026 18:48
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
splitBulletsin the changelog formatter ended a bullet at the first blank line, so any changeset body with more than one paragraph lost everything after the first — silently, on the way into the published CHANGELOG.reflowBulletBodyright below it already handles paragraph breaks; it just never received them.A blank line now ends a bullet only when the next non-blank line is unindented (the next bullet, a
####section, a---divider). Indented continuation keeps the bullet open.This is not hypothetical for the v0.4.0 cut: 12 of the pending entries lose content, including two of the most detailed ones on the release — the Indicator decorative/tabIndex contract (3 of 4 paragraphs gone) and the icon theme-target consolidation (3 of 4, including the RTL-mirror fix and the new lint rule). Also affects
selector-typeahead-select,cli-self-documenting-docs,theme-build-icons-specifier,focus-outline-consistency,themeable-indicators,fix-indicator-falsy-children,build-vite-esm-fs-require.Already-published CHANGELOGs are unaffected — their truncated text is stable under the formatter, so
--checkstays green and no history is rewritten.Test plan
pnpm vitest run scripts/format-changelogs.test.mjs— 10 tests pass, including two new ones: a multi-paragraph entry keeps every paragraph and does not swallow the following bullet, and a blank line before unindented content still ends the bullet.node scripts/format-changelogs.mjs --check— clean on all 10 existing CHANGELOGs (idempotent, no drift).