validate-commit-msg-bot
v1.0.2
Published
validate-commit-msg aaS
Downloads
7
Maintainers
Readme
validate-commit-msg-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.
Usage
- 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:
Development
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 repoStart the app with
APP_ID=1234 npm start
where1234
is your GitHub app's IDUpdate your GitHub app's Webhook URL to your localtunnel.me URL
Author
© 2017 Tom Vincent [email protected] (https://tlvince.com)
License
Released under the MIT license.
Robot emoji courtesy of EmojiOne.