-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.js
43 lines (39 loc) · 1.08 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const triageConfig = {
statuses: {
Acknowledged: {
emoji: ':eyes:'
},
Done: {
emoji: ':white_check_mark:'
},
Accepted: {
emoji: ':thumbsup_all:'
}
},
levels: {
Urgent: {
emoji: ':red_circle:'
},
Medium: {
emoji: ':large_blue_circle:'
},
Low: {
emoji: ':white_circle:'
}
},
scheduled_reminders: [
{
expression: '0 * * * *',
hours_to_look_back: 24,
report_on_levels: ['Urgent', 'Medium'], // only report on messages with one of these levels ("OR" logic)
report_on_does_not_have_status: ['Acknowledged', 'Done'] // only report on messages that do not have either of these statuses ("OR")
}
]
}
// !!! You should not need to edit anything below this comment !!!
// Load our internal triage config helper
const { generateTriageConfigLookups } = require('./helpers/misc')
// Create some calculated arrays/lookups based off of our triageConfig
triageConfig._ = generateTriageConfigLookups(triageConfig)
// Export the config and the generated lookups
module.exports = triageConfig