From f17b7e25294d427b6e44a33c4bfbdde8834213cd Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Mon, 27 Aug 2018 08:57:51 +0200 Subject: [PATCH] Don't distract with canary alerts .pager sup no longer includes the canary alarms, to avoid distracting people with them. --- src/scripts/pagerduty.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/pagerduty.coffee b/src/scripts/pagerduty.coffee index 800253c..205c1e7 100644 --- a/src/scripts/pagerduty.coffee +++ b/src/scripts/pagerduty.coffee @@ -104,6 +104,9 @@ module.exports = (robot) -> robot.emit 'error', err, msg return + incidents = incidents.filter (inc) -> + !/ninesapp\/canary/.test(inc.title) + if incidents.length == 0 msg.send "No open incidents" return