Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
hubot-whos-on-call-mattermost
Advanced tools
This script adds a webhook to hubot that can be called periodically to update a Mattermost channel's header text with the name of the on-call engineer via pagerduty.
Sadly, Pagerduty doesn't have a webhook event for a change in schedule, so a cron job of some kind will need to trigger the script periodically. The header isn't updated if the on-call engineer hasn't changed.
See src/whos-on-call.coffee
for full documentation.
NOTE: This script requires at least version 3.4.0 of hubot-matteruser
npm install hubot-whos-on-call-mattermost
Then add hubot-whos-on-call-attermost to your external-scripts.json
:
[
"whos-on-call-mattermost"
]
Make an HTTP POST request to {HUBOT_HOST}/webhook/on-call/:channel_name
The post body must contain a key called secret
that should match the environment variable WHOS_ON_CALL_WEBHOOK_SECRET
. This will ensure only authorized clients can trigger the script.
The post body can optionally contain a header
key that specifies the text to set the header to. The string $ENGINEER
in this variable will be replaced with the on-call engineer's name (as given by pagerduty). Not specifying this value will trigger the use of the WHOS_ON_CALL_HEADER_TEMPLATE
environment variable.
FAQs
Display the on-call engineer in a channel header
The npm package hubot-whos-on-call-mattermost receives a total of 0 weekly downloads. As such, hubot-whos-on-call-mattermost popularity was classified as not popular.
We found that hubot-whos-on-call-mattermost demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.