Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

core-validate-commit

3.10.0 • Public • Published

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)

Keywords

none

install

npm i core-validate-commit

Downloadsweekly downloads

229

version

3.10.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability