Validate commit messages for Node.js core
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin bin: fix typo in usage.txt (#32) Nov 2, 2018
lib lib: add report subsystem Jan 29, 2019
test add minimal subsystem tests Jan 11, 2019
.gitignore package: update .gitignore to ignore node_modules Oct 28, 2016
LICENSE initial commit Apr 21, 2016 valid subsystems are definded in lib/rules/subsystem.js (#38) Nov 20, 2018
index.js package: switch bin to use new Validator Jul 21, 2016
package-lock.json update lodash to 4.17.11 in package-lock.json Feb 9, 2019
package.json 3.10.0 Jan 29, 2019


Build Status Coverage Status

Validate the commit message for a particular commit in node core


$ npm install [-g] core-validate-commit


# for a single commit
$ core-validate-commit <sha>

# validate since <sha>
$ git rev-list <sha>..HEAD | xargs core-validate-commit

# list all rules
$ core-validate-commit --list
         fixes-url enforce format of Fixes URLs
  line-after-title enforce a blank newline after the commit title
       line-length enforce max length of lines in commit body
      metadata-end enforce that metadata is at the end of commit messages
            pr-url enforce PR-URL
         reviewers enforce having reviewers
         subsystem enforce subsystem validity
      title-format enforce commit title format
      title-length enforce max length of commit title

Valid subsystems are defined in lib/rules/subsystem.js.


$ npm test


Evan Lucas


MIT (See LICENSE for more info)