Validate commit messages for Node.js core
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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
.travis.yml
LICENSE initial commit Apr 21, 2016
README.md README.md: 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

README.md

core-validate-commit

Build Status Coverage Status

Validate the commit message for a particular commit in node core

Install

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

Usage

# 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.

Test

$ npm test

Author

Evan Lucas

License

MIT (See LICENSE for more info)