0.0.2 • Published 6 years ago
github-webhook-server v0.0.2
github-webhook-server
Flexible github webhook server.
Features
- Support both HTTP and HTTPS.
- Custom hook scripts in yaml file.
- Protect sensitive data in environment variables.
Install or Upgrade
$ npm install -g github-webhook-server
Run Server
$ export GITHUB_WEBHOOK_SECRET=abcedf
$ github-webhook-server config.yml
config.yml
# HTTPS
ssl:
enable: false
cert: cert.pem
key: key.pem
# Server Listening Address
host: localhost
port: 8080
path: /
# Secret of GitHub WebHook, use environment variables
secret: ${GITHUB_WEBHOOK_SECRET}
# Event Hooks
on_issue: echo "issue event received"
on_push:
- echo "push event received"
Hint: Set your webhook secret in:
https://github.com/<your_name>/<your_repository>/settings/hooks
.
License
MIT