Affected Packages
@changesets/cli
@changesets/git
Problem
I'm using @changesets/cli with commitlint pre-commit hook. When running changeset version command, it does everything correctly except commiting all the changes.
Note
I'm running commands manually.
I'm getting this error:
$ npx changeset version
🦋 error Changesets ran into trouble committing your files
After removing pre-commit hook, this command runs correctly.
I don't have reproduction, but here is my repo with all my configuration: https://github.com/tysian/wp-theme-cli
Proposed solution
Allow to run --no-verify when commiting using changeset version like this:
changeset version --no-verify or
changeset version --skip-hooks
or
Allow to set custom commit message in .changeset/config.json like this:
{
"commit_message": {
"version": "chore: bump {package} to {version}"
}
}
Affected Packages
@changesets/cli@changesets/gitProblem
I'm using
@changesets/cliwith commitlint pre-commit hook. When runningchangeset versioncommand, it does everything correctly except commiting all the changes.I'm getting this error:
After removing pre-commit hook, this command runs correctly.
I don't have reproduction, but here is my repo with all my configuration: https://github.com/tysian/wp-theme-cli
Proposed solution
Allow to run
--no-verifywhen commiting usingchangeset versionlike this:changeset version --no-verifyorchangeset version --skip-hooksor
Allow to set custom commit message in
.changeset/config.jsonlike this:{ "commit_message": { "version": "chore: bump {package} to {version}" } }