validate-commit-message

3.2.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i validate-commit-message

Weekly Downloads

93

Version

3.2.0

License

Unlicense

Unpacked Size

8.01 kB

Total Files

6

Last publish

Collaborators

  • frikki