Skip to content

coderbk197/verify-commit-msg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify Commit Messgae

Git Commit Message Convention

This is adapted from Commit convention.

Installation

npm i verify-commit-msg -D

Update script package.json

 "scripts": {
    "verify-commit": "verify-commit-msg"
  },

Usage with husky

Config .husky/commit-msg

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run verify-commit

Usage with simple-git-hooks

Install

npm i simple-git-hooks -D

Update package.json

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%