bender-bot 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bender/main.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82832a6c00a1806324e10622ec17f86e0d268818
|
4
|
+
data.tar.gz: b3d962d587773e59515557d771acb4b1b272b589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1538a70a820675a2e38499a06100c7aef26399c47ccfe4d81af3525dac6f0c903dc7bc7b796bc768fab000f37dfe3e5e91a77c2dd64dc6cb6b1e85e3dc19d9c7
|
7
|
+
data.tar.gz: bab50ed9471cb74f0805f90c00096540eb5a6cf25186f464e31aff1cdbe96da5be5b73b8ca4e554dc43e8d0e8ad3a5279fdb1831ba2fc8ce654d0bb09d863db1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.7
|
data/lib/bender/main.rb
CHANGED
@@ -178,14 +178,12 @@ module Bender
|
|
178
178
|
|
179
179
|
open_incidents = incidents.select do |i|
|
180
180
|
status = normalize_value i['fields']['status']
|
181
|
-
severity = short_severity(i['fields'][SEVERITY_FIELD]['value'])
|
181
|
+
severity = short_severity(i['fields'][SEVERITY_FIELD]['value'])
|
182
182
|
is_open = !(status =~ /resolved|closed/i)
|
183
183
|
is_severe = severity =~ /(SEV1|SEV2)/i
|
184
184
|
is_open && is_severe
|
185
185
|
end
|
186
186
|
|
187
|
-
log.warn open_incidents: open_incidents
|
188
|
-
|
189
187
|
@room_name ||= bot.store['primary_room_name'] || new_room['name']
|
190
188
|
@room_topic ||= bot.store['primary_room_topic'] || new_room['topic']
|
191
189
|
|