-
-
Notifications
You must be signed in to change notification settings - Fork 0
Prepare Commit Message
David Ortner edited this page Jan 29, 2024
·
2 revisions
Prepares commit message.
This is useful in combination with a tool like Husky.
Basic Usage
happy-prepare-commit-message --commitFile={commitFile} --commitType={commitType}
With Husky
- Install Husky
- Create the file ".husky/commit-msg"
- Add the following to the file ".husky/prepare-commit-msg":
#!/bin/sh . "$(dirname "$0")/_/husky.sh" ./node_modules/.bin/happy-prepare-commit-message --commitFile=$1 --commitType=$2