{"_id":"github-release-webhook-to-bugsnag","_rev":"111-e8c00e9697c6b92348b048526a16ee5d","name":"github-release-webhook-to-bugsnag","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"github-release-webhook-to-bugsnag","version":"0.1.0","license":"Apache-2.0","_id":"github-release-webhook-to-bugsnag@0.1.0","maintainers":[{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"}],"homepage":"http://github.com/mongodb-js/github-release-webhook-to-bugsnag","bugs":{"url":"git://github.com/mongodb-js/github-release-webhook-to-bugsnag.git/issues"},"dist":{"shasum":"534350b88e8ee8057f2f0aeb87447340d3db0a67","tarball":"https://registry.npmjs.org/github-release-webhook-to-bugsnag/-/github-release-webhook-to-bugsnag-0.1.0.tgz","integrity":"sha512-42XjknGoU0HWCKlHBYIPTndZqlplXhHtBfSwAYXH9Rv6u/iDoCnqrwM9HbluvwLYJ/r/OYyDWLaEpMDgkNgouw==","signatures":[{"sig":"MEYCIQD4ZEj+if+zuvp01/Zgd8EkjPL+yrhHeCLwrRlYXXKUXQIhAJc+x5KeLvbg8uk3BUzNRn6V5oIZpQFasjyr6UM6z8wZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"534350b88e8ee8057f2f0aeb87447340d3db0a67","gitHead":"103b0c180a2445ffe1d485e43345ed06a13cf4c3","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/github-release-webhook-to-bugsnag.git","type":"git"},"_npmVersion":"3.10.9","description":"Notify Bugsnag of a new deployment when a new GitHub release is published.","directories":{},"_nodeVersion":"6.5.0","dependencies":{"got":"^6.6.3","debug":"^2.4.5","lodash":"^4.17.2"},"devDependencies":{"mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/github-release-webhook-to-bugsnag-0.1.0.tgz_1482164990308_0.855389398522675","host":"packages-18-east.internal.npmjs.com"}}},"time":{"created":"2016-12-19T16:29:50.823Z","modified":"2026-07-15T15:35:30.213Z","0.1.0":"2016-12-19T16:29:50.823Z"},"bugs":{"url":"git://github.com/mongodb-js/github-release-webhook-to-bugsnag.git/issues"},"license":"Apache-2.0","homepage":"http://github.com/mongodb-js/github-release-webhook-to-bugsnag","repository":{"url":"git://github.com/mongodb-js/github-release-webhook-to-bugsnag.git","type":"git"},"description":"Notify Bugsnag of a new deployment when a new GitHub release is published.","maintainers":[{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"devtools-npm-user@mongodb.com","name":"devtools-npm-user"},{"email":"hrabovsky.lucas@gmail.com","name":"imlucas"}],"readme":"# github-release-webhook-to-bugsnag [![travis][travis_img]][travis_url] [![npm][npm_img]][npm_url]\n\n> [Notify Bugsnag][deploy tracking] of a new deployment when [a new GitHub release is published][release event].\n\n## Example\n\nDesigned for use with the excellent [`github-webhook-middleware`][github-webhook-middleware].\n\n```bash\nnpm install --save github-release-webhook-to-bugsnag github-webhook-middleware\n```\n\nAdd a new route for your GitHub webhook that uses the middleware:\n\n```javascript\nconst app = require('express')();\n\n...\n\nconst githubWebhook = require('github-webhook-middleware')({\n  secret: process.env.REFRESH_SECRET\n});\n\nconst notifyBugsnagOnRelease = require('github-release-webhook-to-bugsnag')({\n  repo: process.env.GITHUB_REPO,\n  token: process.env.GITHUB_TOKEN,\n  bugsnag: process.env.BUGSNAG_NOTIFIER_KEY\n});\n\napp.post('/hooks/github', githubWebhook, notifyBugsnagOnRelease);\n\n...\n```\n\n## Configuration\n\n- *repo* `:username/:repo` path on GitHub. Uses the `GITHUB_REPO` environment variable if unspecified.\n- *token* GitHub access token.  Uses the `GITHUB_TOKEN` environment variable if unspecified.\n- *bugsnag* Bugsnag notifier token. Uses the `BUGSNAG_NOTIFIER_KEY` environment variable if unspecified.\n- *githubEndpoint* For GitHub enterprise users. Uses the `GITHUB_ENDPOINT` environment variable if unspecified. Defaults to `https://api.github.com`.\n- *bugsnagEndpoint* For Bugsnag enterprise users. Uses the `BUGSNAG_ENDPOINT` environment variable if unspecified. Defaults to `https://notify.bugsnag.com/deploy`.\n\n\n## License\n\nApache 2.0\n\n[travis_img]: https://img.shields.io/travis/mongodb-js/github-release-webhook-to-bugsnag.svg\n[travis_url]: https://travis-ci.org/mongodb-js/github-release-webhook-to-bugsnag\n[npm_img]: https://img.shields.io/npm/v/github-release-webhook-to-bugsnag.svg\n[npm_url]: https://npmjs.org/package/github-release-webhook-to-bugsnag\n[github-webhook-middleware]: https://npmjs.org/package/github-webhook-middleware\n[deploy tracking]: https://docs.bugsnag.com/api/deploy-tracking/\n[release event]: https://developer.github.com/v3/activity/events/types/#releaseevent\n","readmeFilename":"README.md"}