Repository navigation
refactor(create-release-branch): let a mode name its prepare step - #166
Open
GuillaumeRx wants to merge 1 commit into
Open
GuillaumeRx wants to merge 1 commit into
GuillaumeRx wants to merge 1 commit into
Conversation
2 of 4 tasks
GuillaumeRx
force-pushed
the
gr/crb-cs-02-core-seams
branch
2 times, most recently
from
November 12, 2026 16:11
3d1a722 to
ed08045
Compare
GuillaumeRx
force-pushed
the
gr/crb-cs-02-core-seams
branch
from
November 13, 2026 10:28
ed08045 to
eeceeb9
Compare
The prepare step of a mode is now an object with a title, a result, and a run function. The core shows the title and the result that the mode gives, so the "Updating changelogs" labels move to the legacy mode. Also extract shared helpers in core: - `UserFacingError.buildPlainMessage` for plain constructor messages. - `resolveVersionSpecifier` and `suggestVersionSpecifier` in `release-rules.ts`.
GuillaumeRx
force-pushed
the
gr/crb-cs-02-core-seams
branch
from
November 16, 2026 11:20
eeceeb9 to
b97bd6c
Compare
GuillaumeRx
marked this pull request as ready for review
November 16, 2026 12:43
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.
Explanation
A core change for the Changesets mode: the mode names its
preparestep.prepareis now aModePrepareStepwith atitle, aresult, and arunfunction. The core shows the title and the result that the mode gives, so the "Updating changelogs" labels move to the legacy mode. Legacy mode uses the step to update the changelogs.This PR also adds small shared helpers in
core:UserFacingError.buildPlainMessagebuilds the unstyled constructor message fromdescribe.resolveVersionSpecifierandsuggestVersionSpecifierinrelease-rules.tsresolve and propose SemVer bump specifiers.The legacy output does not change.
References
create-release-branchChecklist