README
interactive-commit
Overview
Create messages in an interactive format.
Usage
npm i -D interactive-commit
touch interactive-commit.config.js
example
https://github.com/baronTommy/interactive-commit/blob/main/interactive-commit.config.js
The part that matches questionDictionary.name
will be replaced.
Change the templates and questions as you like.
This setting is Conventional Commit and gitmoji.
Commit hook
githooks
prepare-commit-msg
#!/bin/sh
exec < /dev/tty && yarn interactive-commit commit --hook
git -c my.interactive=yes commit
package.json
"scripts": {
"prepare": "git config --local core.hooksPath .githooks"
}
husky
prepare-commit-msg
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
exec < /dev/tty && npx interactive-commit commit --hook