Repository navigation
fix(create-release-branch): allow empty "Initialize Release" commit - #142
Merged
Merged
Conversation
`create-release-branch` always commits after updating changelogs. When the changelogs are already up to date, which is now the norm because PRs edit them by hand, there is nothing to stage and `git commit` fails with "nothing to commit", aborting the run. Add an `allowEmpty` option to `commitAllChanges` that passes `--allow-empty`, and use it for the "Initialize Release" commit only.
Add an `[Unreleased]` entry for the `create-release-branch` fix from #142. The "Initialize Release" commit no longer fails when the changelogs are already up to date.
GuillaumeRx
approved these changes
Nov 2, 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.
Explanation
create-release-branchupdates the changelogs of changed packages and then commits them as "Initialize Release". PRs now edit changelogs by hand, so the changelogs are usually already up to date. There is then nothing to stage,git commitfails with "nothing to commit", and the whole run onmainaborts.This adds an
allowEmptyoption tocommitAllChanges, which passes--allow-emptytogit commit. Only the "Initialize Release" commit uses it. The other commits behave as before.References
None.
Checklist