github-webhook-forwarding
Version:
Forwards Github Webhooks to overcome the maximum number of webhooks allowed by Github (20)
15 lines (12 loc) • 328 B
JavaScript
var sendRequest = require('./sendrequest')
module.exports = exports = function (config, id) {
var payload = {
method: 'DELETE',
path: '/orgs/' + config.gitOwner + '/hooks/' + id,
headers: {
Authorization: 'Basic ' + config.gitAuth
}
}
return sendRequest(config, payload, false, 204)
}