forked from grigori-gru/jira-to-matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.js
46 lines (46 loc) · 1.4 KB
/
config.example.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
module.exports = Object.freeze({
port: 4100, // where to listen JIRA webhooks
lang: 'en', // a language bot talks to users in
jira: {
url: 'https://jira.example.org',
user: 'bot',
password: 'key',
},
// Список допустимых действий для пользователя
features: {
createRoom: true,
inviteNewMembers: true,
postComments: true,
postIssueUpdates: true,
epicUpdates: {
newIssuesInEpic: 'on',
issuesStatusChanged: 'on',
field: 'customfield_10006',
fieldAlias: 'Epic Link',
},
newLinks: true,
postChangesToLinks: {
on: true,
// Not to post to closed issues (3 - id of status category "Done")
ignoreDestStatusCat: [3],
},
},
// useful for testing, add a test user into production config
usersToIgnore: ['jira_test'],
testMode: {
on: true,
users: ['ivan', 'masha'],
},
redis: {
host: '127.0.0.1',
port: 6379,
prefix: 'jira-hooks:',
},
ttm_minutes: 60, // time-to-matter, how long to re-try digesting jira hooks
matrix: {
domain: 'matrix.example.org',
user: 'bot', // short name, before colon, without @
password: 'key',
pollTimeout: 30000 // The number of milliseconds to wait on /sync
},
})