-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
husky falls back to original git commit message prompt if I cancel when displaying commitizen prompt #688
Comments
I am having the same issue. Also, the commitizen prompt is reprinting the options each time I type something. |
Having the same issue - it looks like git-cz returns a 0 exit code even when CTRL-C'd. Not sure why commitizen traps the SIGINT but it should probably be surfaced. If it returns a non-zero exit code it should work with husky and prevent the standard git message from showing. |
i am having the same issue. |
commitizen using Inquirer.js for prompt. It might be a process.stdin.on("data", (key) => {
if (key == "\u0003") {
process.exit(1);
}
}); add above to |
🎉 This issue has been resolved in version 4.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
For me, I'm trying to use the single command
Then I make de description:
But it's falling back to VIM to edit COMMIT_EDITMSG:
My pakcage.json husky config and version:
-> Some can help me with this issue? There is some "thing" to avoid open the |
Has there been any fix to this? |
Having this issue as well, sadly throws me to vim commit message if I use "commitizen": "^4.2.4",
"git-cz": "^4.8.0",
"husky": "^7.0.4" |
So, this has been closed without actually being fixed 🤔 😞 |
Hello.
I am using Husky together with Commitizen to execute git-cz when doing a git commit.
I have defined the following configuration as stated in the documentation:
Everything works fine and I am prompted to choose the commit message from commitizen.
The problem is if I hit CTRL-C to cancel my commit, it just closes the commitizen prompt and falls back to the original git commit prompt. I want to abort everything in this case and dont do the commit.
I have tried to remove the "|| true" from the prepare-commit-msg command but it´s the same.
Not sure if it´s an issue of husky or commitizen.
Thanks for the help.
The text was updated successfully, but these errors were encountered: