Détail du package

validate-commit-message

Frikki16.8kUnlicense3.2.0

GIT COMMIT-MSG hook for validating commit message.

git, message validation

readme

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.

changelog

v3.2.0 (2021-03-22)

Features

v3.0.1 (2015-09-08)

Bug Fixes

  • bin: chmod: cannot access ‘.git/hooks/commit-msg’: No such file or directory (8ce6ec75)

v3.0.0 (2015-09-06)

Features

  • remove local release and changelog scripts (fa9889dd)

Breaking Changes

  • due to fa9889dd, release.js and changelog.js have been removed.

BREAKING CHANGE: initChangelog scripts has been removed from package.json.

v2.0.1 (2015-09-06)

v2.0.0 (2015-09-05)

Features

Breaking Changes

Remove hacky jasmine check.

v1.0.0 (2015-09-05)

Features