Repository navigation
chore(changesets): categorized, contributor-attributed, patch-only changesets - #2981
Merged
Merged
Conversation
…angesets Encapsulate the release conventions that were previously applied by hand at version time (see the Release-Process wiki) into the changeset itself: - Per-package changelogs for repo-wide changes: publishable packages are a `fixed` lockstep group, so one change co-bumps them to the same version while only genuinely-affected packages receive a changelog entry (themes etc. get a clean version-only bump, no cross-package noise). - Pre-1.0 patch-only: `changeset:new` always writes `patch`, and `check:changesets` rejects any `minor`/`major` while the repo is < 1.0 (those would jump 0.0.x). Breaking changes are signalled via the `[breaking]` category, decoupled from semver. - Contributor encapsulation: the contributor is captured at authoring time (defaulting to the author's gh/git identity) in the changeset body, so the generated `#### Contributors` section credits the real human rather than the release bot. Pieces: - scripts/changeset-entry-format.cjs — shared body parser (category + @handle) - .changeset/changelog.cjs — custom changelog module (wired via config.json) - scripts/changeset-new.mjs — `pnpm changeset:new` authoring wrapper - scripts/check-changesets.mjs — CI gate (`pnpm check:changesets`, in check:repo) - scripts/format-changelogs.mjs — post-version formatter (doc-site headings + aggregated Contributors), idempotent with a --check drift mode; wired into `version-packages` Also migrates the existing changeset to the new format and documents the workflow in CONTRIBUTING.md.
cixzhang
requested review from
ejhammond,
imdreamrunner,
josephfarina,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
June 22, 2026 17:10
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
🚀 Vercel Preview Deployment
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
josephfarina
approved these changes
Jun 22, 2026
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.
Why
Watching the release process, our changesets weren't pulling their weight on three fronts. This encapsulates the conventions that the Release-Process wiki currently asks us to apply by hand at version time into the changeset itself.
fixedlockstep co-bumps all publishable packages; only affected packages get a changelog entryminorjumps 0.0.x → 0.1.0changeset:newforcespatch;check:changesetsrejectsminor/majorpre-1.0. Breaking changes use the[breaking]category, not a semver bumpgit log/gh pr list— credits the release bot under bot-driven releases#### Contributorsis generated from itWhat changed
scripts/changeset-entry-format.cjs— shared parser for the body convention ([category]headline +@handleline). Single source of truth..changeset/changelog.cjs— custom changelog module (wired viaconfig.json"changelog"). Renders categorized, attributed release lines; suppresses lockstep "Updated dependencies" noise.scripts/changeset-new.mjs→pnpm changeset:new— authoring wrapper. Auto-detects changed packages from the git diff, prompts for category + contributor (defaulting to yourgh/git identity), forcespatch. Built on Node'sreadline— no new deps.scripts/check-changesets.mjs→pnpm check:changesets— CI gate, wired intocheck:repo. Enforces category, contributor, patch-only, and publishable-package validity.scripts/format-changelogs.mjs— post-versionformatter. Promotes to the doc-site heading format (# version,#### <Category>in canonical order) and aggregates#### Contributors. Idempotent, with a--checkdrift mode. Wired intoversion-packages..changeset/config.json—changelog→ custom module;fixedgroup of the 12 publishable packages.eslint.config.js— ignore.changeset/**(CJS release glue, consistent withscripts/**).CONTRIBUTING.md— documents the new workflow.Authoring example
Generated output
A core-only
[fix]produces@xds/core:…while themes co-bump to
0.0.16with a clean version-only entry (no cross-package noise).Testing
End-to-end on a real
pnpm version-packagesrun: per-package isolation verified, all 12 packages co-bump, formatter is idempotent and--check-clean, and edge cases (rejectminor, missing category/contributor, private package) all gate correctly.pnpm lintis green (0 errors).Note on bump types
This intentionally does not change our pre-1.0 patch-only stance — it enforces it. When we hit 1.0,
check:changesetsdrops the patch-only gate automatically (it keys off whether publishable packages are still0.x).