diff --git a/lefthook.yml b/lefthook.yml index 1b367cc..0b7e176 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -14,6 +14,9 @@ prepare-commit-msg: skip: - merge - rebase - jobs: - - run: ./dist/cli.js --message-only > {1} + commands: + commitment: + # Only run for regular commits (not merge, squash, or when message specified) + # {1} is the commit message file, {2} is the commit source + run: '[ -z "{2}" ] && ./dist/cli.js --message-only > {1} || true' interactive: true