commitlint
commitlint copied to clipboard
When the commit-msg hook fail (found problems in the message), how to get this message to retry the commit and fixing the error in the editor
commit-msg
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec commitlint --edit $1
For example, when I commit and it fails, I don't want to rewrite all, there is a way to retry and open this message in the editor to fix the errors?
I currently using @commitlint/cz-commitlint