0.0.14 • Published 5 months ago

verify-commit-msg v0.0.14

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Verify Commit Messgae

Git Commit Message Convention

This is adapted from Commit convention.

Installation

npm i verify-commit-msg -D

Update script package.json

  • Bash
npm pkg set scripts.verify-commit=verify-commit-msg
  • Or manually update package.json
"scripts": {
  "verify-commit": "verify-commit-msg"
},

Usage with husky

Config .husky/commit-msg

  • Bash
npx husky add .husky/commit-msg "npm run verify-commit"
  • Or manually update .husky/commit-msg
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run verify-commit

Usage with git-scm-hooks

git-scm-hooks

Update package.json

"git-hooks": {
  "commit-msg": "npm run verify-commit"
},
0.0.14

5 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago