hubot-npm
v1.0.1
Published
Hubot script for npm notifications
Downloads
18
Maintainers
Readme
hubot-npm
Installation
npm install --save hubot-npm
Add the script to your external-scripts.json
file:
[
"hubot-npm"
]
You'll need to export a secret that you should use to verify your hooks:
export HUBOT_NPM_SECRET=<secret>
If you want to set a default room for notifications:
export HUBOT_NPM_ROOM=<room>
Usage
The npm hook URL is:
<hubot_url>:<port>/hubot/npm[?room=<room>]
Be sure to set the ?room
query string parameter if you've not set the HUBOT_NPM_ROOM
variable.
You can add your hook using the wombat CLI tool:
wombat hook add <user|package|scope> <hubot_url>:<port>/hubot/npm[?room=<room>] <secret>