Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

EducationPerfect/web-npm-validate-commit-message

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

validate-commit-message

GIT COMMIT-MSG hook for validating commit message.

$ validate-commit-msg creates a symbolic link .git/hooks/commit-msg to ./lib/validate-commit-msg.js which is executed on every commit.

The hook script validates commit messages on each commit according to the AngularJS commit message guidelines.

Installation

$ npm install validate-commit-message

Usage

You can activate the hook from the command line of your project.

$ node ./node_modules/.bin/validate-commit-msg

A more consistent way is to add a script in your package.json.

"scripts": {
  "init": "validate-commit-msg"
}

Then execute $ npm run init.

About

GIT COMMIT-MSG hook for validating commit message.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%