Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubot-whos-on-call-mattermost

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-whos-on-call-mattermost

Display the on-call engineer in a channel header

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status npm version dependencies

npm stats

hubot-whos-on-call-mattermost

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

Installation

npm install hubot-whos-on-call-mattermost

Then add hubot-whos-on-call-attermost to your external-scripts.json:

[
  "whos-on-call-mattermost"
]

Triggering the script

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.

Keywords

FAQs

Package last updated on 02 Oct 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc