Skip to content

bird-studio/interactive-message

Repository files navigation

semantic-release Gitmoji

interactive-message

Alternative

https://github.com/bird-studio/hoipoi_capsule

Overview

Create messages in an interactive format.

demo.mov

I need to use it right away.

https://github.com/akira-toriyama/interactive-message-demo

Usage

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.

Commit hook

githooks

prepare-commit-msg

#!/bin/sh

exec < /dev/tty && yarn interactive-message commit
git 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-message commit

Localization