Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bpedro/gitevents-webhook
GitEvents Webhook module
https://github.com/bpedro/gitevents-webhook
Last synced: 26 days ago
JSON representation
GitEvents Webhook module
- Host: GitHub
- URL: https://github.com/bpedro/gitevents-webhook
- Owner: bpedro
- License: mit
- Created: 2015-01-17T15:09:11.000Z (about 10 years ago)
- Default Branch: develop
- Last Pushed: 2015-01-17T17:44:56.000Z (about 10 years ago)
- Last Synced: 2023-04-13T17:50:54.472Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
gitevents-webhook is an npm module that can be used to process and validate GitHub originated webhooks.
# Basic usage
```
...var config = {github: {key: 'MY_WEBHOOK_KEY'}};
var webhook = require('webhook')(config);app.post('/hook', function(req, res) {
webhook.process(req, function(body, err) {
if (err) {
res.status(err).json({msg: 'Unauthorized'}).end();
} else {
res.send(body);
}
});
});...
```