Skip to content

fix(scripts): keep every paragraph of a multi-paragraph changelog entry - #4999

Merged
cixzhang merged 1 commit into
mainfrom
fix/changelog-multiparagraph-bullets
Aug 13, 2026
Merged

cixzhang merged 1 commit into
mainfrom
fix/changelog-multiparagraph-bullets

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

splitBullets in 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. reflowBulletBody right 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 --check stays 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).

@vercel

vercel Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 13, 2026 6:41pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 13, 2026
@cixzhang
cixzhang enabled auto-merge (squash) August 13, 2026 18:48
@cixzhang
cixzhang merged commit 3bbcac4 into main Aug 13, 2026
18 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Aug 13, 2026
@github-actions
github-actions Bot deleted the fix/changelog-multiparagraph-bullets branch August 14, 2026 06:33
@cixzhang cixzhang mentioned this pull request Aug 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 87bd613d Deployed Aug 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant