commitlint-bot
v1.2.0
Published
A GitHub App that runs commitlint for you
Downloads
10
Maintainers
Readme
commitlint [bot]
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:
Problem details will be reported as a comment like this:
For best results, enable branch protection (in the repository's settings) and require the commitlint
status check to pass before merging:
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
where1234
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