Skip to content

feat(create-release-branch): load Changesets and list their candidates - #167

Draft
GuillaumeRx wants to merge 1 commit into
gr/crb-cs-02-core-seamsfrom
gr/crb-cs-03-candidates
Draft

GuillaumeRx wants to merge 1 commit into
gr/crb-cs-02-core-seamsfrom
gr/crb-cs-03-candidates

Conversation

@GuillaumeRx

@GuillaumeRx GuillaumeRx commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

Reads the pending Changesets and lists the packages that they release. Nothing uses this code yet.

  • loadChangesets reads the packages, the Changesets config, and the release plan. It throws a ChangesetsSetupError if the config is missing or not valid, if changelog is not @metamask/changesets-changelog, or if the project is in pre mode.
  • listChangesetsCandidates turns the plan into the core Candidate list. Each candidate has one of these kinds:
    • changes: a Changeset bumps the package.
    • dependency: the plan bumps the package, but no Changeset names it.

New dependencies: @changesets/config, @changesets/get-release-plan, @changesets/types, and @manypkg/get-packages.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

@socket-security

socket-security Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​changesets/​get-release-plan@​5.0.21001006794100

View full report

@GuillaumeRx
GuillaumeRx added this pull request to stack #171 November 12, 2026 14:07
@GuillaumeRx
GuillaumeRx force-pushed the gr/crb-cs-03-candidates branch 2 times, most recently from f1e1a90 to e99e733 Compare November 12, 2026 15:10
@GuillaumeRx
GuillaumeRx force-pushed the gr/crb-cs-03-candidates branch from e99e733 to a4c5b6c Compare November 12, 2026 16:11
Add the first part of the Changesets mode. loadChangesets reads the
workspace packages, the Changesets configuration, and the release plan
of all pending Changesets. It stops with a setup error when the
configuration is missing or not valid, when its changelog setting is not
@metamask/changesets-changelog, or when the project is in Changesets
pre mode.

listChangesetsCandidates lists the packages that the plan bumps, as
packages with changes or with only a dependency bump.

Remove the legacy-entries candidate kind. No mode lists such packages.
@GuillaumeRx
GuillaumeRx force-pushed the gr/crb-cs-03-candidates branch from a4c5b6c to 59d0412 Compare November 13, 2026 10:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant