summaryrefslogtreecommitdiff
path: root/baserock_webserver/gitlab-bot/config.js
blob: 13b66e139126f4bc2ab1a4b1e2d85abc4dceccbf (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
    // IRC server to connect to.
    servers: {
        gimp: 'irc.gimp.org',
        freenode: 'irc.freenode.net'
    },

    // List of channels / people to report to.
    triggers: [
        {
            project: 'baserock/definitions',
            network: 'freenode',
            reports: {
                '#baserock': ['merge_request', 'issue']
            }
        },
        {
            project: 'baserock/infrastructure',
            network: 'freenode',
            reports: {
                '#baserock': ['merge_request', 'issue']
            }
        },
        {
            project: 'baserock/lorries',
            network: 'freenode',
            reports: {
                '#baserock': ['merge_request', 'issue']
            }
        },
        {
            project: 'baserock/ybd',
            network: 'freenode',
            reports: {
                '#baserock': ['merge_request', 'issue']
            }
        },
        {
            project: 'BuildStream/buildstream',
            network: 'gimp',
            reports: {
                '#buildstream': ['push', 'merge_request', 'issue']
            }
        },
    ],

    // IRC nick/names for the bot
    nick: 'gitlab-br-bot',
    userName: 'gitlab-br-bot',
    realName: 'Gitlab Bot provided by Baserock',

    // Secret as entered in the Gitlab Webhook instance.
    secret: '{{ gitlab_buildstream_secret }}',

    // Port on which to run.
    port: 1337,

    // Network interface on which to run the webhook server.
    hostname: '0.0.0.0',

    // Instance of lstu to shorten links -- keep empty to not use.
    //lstu: 'https://lstu.fr',

    // Whether the irc client debug messages should be printed.
    debug: true
}