GithubHelp home page GithubHelp logo

lholmquist / core-validate-commit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodejs/core-validate-commit

0.0 2.0 0.0 266 KB

Validate commit messages for Node.js core

License: MIT License

JavaScript 100.00%

core-validate-commit's Introduction

core-validate-commit

Build Status codecov

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

To see a list of valid subsystems:

$ core-validate-commit --list-subsystem

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

Test

$ npm test

Author

Evan Lucas

License

MIT (See LICENSE for more info)

core-validate-commit's People

Contributors

addaleax avatar bfarias-godaddy avatar codebytere avatar danbev avatar evanlucas avatar guybedford avatar joaocgreis avatar joyeecheung avatar lholmquist avatar not-an-aardvark avatar rdil avatar refack avatar richardlau avatar sam-github avatar srl295 avatar targos avatar trott avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.