Gilp plugin to validate commit messages.
npm install gilp-check-commit
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))
});
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.
Gilp Check Commit is maintained and funded by sophilabs, inc. The names and logos for sophilabs are trademarks of sophilabs, inc.