Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 2.5 KB

README.md

File metadata and controls

63 lines (50 loc) · 2.5 KB

Gilp Check Commit

travis coverage npm downloads js-semistandard-style license dependencies dev-dependencies

Gilp plugin to validate commit messages.

Installation

npm install gilp-check-commit

Usage

var gulp = require('gulp');
var gilpCheckCommit = require('gilp-check-commit');
var gilp = require('gilp')(gulp);

gilp.hook('commit-msg', function () {
  return gilp.srcFromStaged(['**/*'])
    .pipe(gilpCheckCommit(/^(NA|[0-9]+)\:\s[A-Z0-9].*\.$/gm))
  });

License

Gilp Check Commit is Copyright (c) 2016 sophilabs, inc. It is free software, and may be redistributed under the terms specified in the license file.

About

sophilabs

Gilp Check Commit is maintained and funded by sophilabs, inc. The names and logos for sophilabs are trademarks of sophilabs, inc.