Socket
Book a DemoInstallSign in
Socket

commitlint-bot

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitlint-bot

A GitHub App that runs commitlint for you

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

commitlint [bot]

Travis npm

commitlint logo

Built with probot framework

A GitHub App that runs commitlint against all commits of new or edited pull requests and sets an appropriate status check.

Usage

  • Browse to GitHub Apps - commitlint
  • Accept the permissions
  • Allow access to repositories

On the next pull request, a status check from commitlint will appear:

status-check-screenshot

Problem details will be reported as a comment like this:

status-comment-screenshot

For best results, enable branch protection (in the repository's settings) and require the commitlint status check to pass before merging:

branch-protection-screenshot

What is missing?

We don't currently support custom configuration (i.e. .commitlint.yml or .commitlint.json), but we will

Development

  • Setup the repo:
git clone https://github.com/z0al/commitlint-bot.git
cd commitlint-bot
npm install
  • Create your own GitHub app
  • Store the private key as private-key.pem somewhere safe, and point to its location in .env
  • Start the app with APP_ID=1234 npm start where 1234 is your GitHub app's ID
  • Update your GitHub app's Webhook URL to your localtunnel.me URL

Deployment

See docs/deploy.md for more info.

Credits

Robot designed by Freepik.

Inspired by the awesome work of Tom Vincent in their validate-commit-msg-bot package.

Like it?

Give it a star(:star:) :point_up_2:

License

MIT © Ahmed T. Ali

Keywords

validate

FAQs

Package last updated on 08 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts