Repository navigation
feat(create-release-branch): load Changesets and list their candidates - #167
Draft
GuillaumeRx wants to merge 1 commit into
Draft
GuillaumeRx wants to merge 1 commit into
GuillaumeRx wants to merge 1 commit into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
3 of 4 tasks
GuillaumeRx
force-pushed
the
gr/crb-cs-03-candidates
branch
2 times, most recently
from
November 12, 2026 15:10
f1e1a90 to
e99e733
Compare
GuillaumeRx
force-pushed
the
gr/crb-cs-03-candidates
branch
from
November 12, 2026 16:11
e99e733 to
a4c5b6c
Compare
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
force-pushed
the
gr/crb-cs-03-candidates
branch
from
November 13, 2026 10:28
a4c5b6c to
59d0412
Compare
This branch has not been 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.
Explanation
Reads the pending Changesets and lists the packages that they release. Nothing uses this code yet.
loadChangesetsreads the packages, the Changesets config, and the release plan. It throws aChangesetsSetupErrorif the config is missing or not valid, ifchangelogis not@metamask/changesets-changelog, or if the project is in pre mode.listChangesetsCandidatesturns the plan into the coreCandidatelist. 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
create-release-branchChecklist