UNMAINTAINED. Please migrate your projects to commitlint-bot.
validate-commit-msg aaS
Runs validate-commit-msg over all commits of new or edited pull requests and sets an appropriate a status check.
Send a PR to tlvince-sandbox-validate-commit-msg-bot to see it in action.
- Browse to GitHub Apps - validate commit msg
- Accept the permissions
- Allow access to repositories
On the next pull request, a status check from validate-commit-msg-bot
will appear:
For best results, enable branch protection (in the repository's settings) and require the validate-commit-msg
status check to pass before merging:
-
Setup the repo:
git clone https://github.com/tlvince/validate-commit-msg-bot.git cd validate-commit-msg-bot npm install
-
Create your own GitHub app
-
Store the private key as
private-key.pem
in the repo -
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
© 2017 Tom Vincent [email protected] (https://tlvince.com)
Released under the MIT license.
Robot emoji courtesy of EmojiOne.