forked from slackapi/template-triage-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
49 lines (45 loc) · 1.19 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
44
45
46
47
48
49
const triageConfig = {
statuses: {
WorkingOnIt: {
emoji: ':working_on_it:'
},
LookingIntoIt: {
emoji: ':looking_into_it:'
},
LongTermFix: {
emoji: ':long_term_fix:'
},
ReadyToDeploy: {
emoji: ':ready_to_deploy:'
},
Done: {
emoji: ':done:'
}
},
levels: {
Urgent: {
emoji: ':red_circle:'
},
Medium: {
emoji: ':large_blue_circle:'
},
Low: {
emoji: ':white_circle:'
}
},
scheduled_reminders: [
{
expression: '0 9,15 * * *',
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: ['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