UNPKG

github-webhook-forwarding

Version:

Forwards Github Webhooks to overcome the maximum number of webhooks allowed by Github (20)

15 lines (12 loc) 339 B
'use strict' var log = require('npmlog') module.exports = exports = function () { return new Promise((resolve, reject) => { if (this.config.verbose) { log.info('Starting server') } this.handle = this.app.listen(this.config.port, resolve) log.info('Listening on localhost:', this.config.port) resolve() }) }