https://github.com/bird-studio/hoipoi_capsule
Create messages in an interactive format.
demo.mov
https://github.com/akira-toriyama/interactive-message-demo
npm i -D @bird-studio/interactive-message
touch interactive-message.config.js
example
https://github.com/akira-toriyama/interactive-message-demo/blob/main/interactive-message.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.
prepare-commit-msg
#!/bin/sh
exec < /dev/tty && yarn interactive-message commit
git commit
package.json
"scripts": {
"prepare": "git config --local core.hooksPath .githooks"
}
prepare-commit-msg
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
exec < /dev/tty && npx interactive-message commit