forked from SnapInteractive/mergeatron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.sample.js
72 lines (72 loc) · 1.73 KB
/
config.sample.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Rename, or copy, to config.js in the same directory
exports.config = {
db: {
type: 'mongo',
auth: {
user: 'username',
pass: 'password',
host: 'localhost',
port: 27017
},
database: 'mergeatron',
collections: [ 'pulls' ]
},
log_level: 'info',
plugin_dirs: [ './plugins/' ],
plugins: {
github: {
enabled: true,
method: 'hooks', // 'hooks' for webhooks or 'polling' to poll the REST API
auth: {
type: 'basic',
username: 'username',
password: 'password'
},
user: 'user-to-watch',
repos: [ 'repo_name' ],
retry_whitelist: [ 'user', 'user2' ], // optional whitelist of those able to trigger retries
skip_file_listing: false,
frequency: 15000, // only necessary if method is 'polling'
port: '8888', // only necessary if method is 'hooks'
// optional. If running GitHub Enterprise this is the host/port to access the REST API.
// Can be left out if just using github.com.
api: {
host: 'ghe.example.com',
port: '1234'
}
},
jenkins: {
enabled: true,
user: false,
pass: false,
protocol: 'http',
host: 'jenkins.yoururl.com:8080',
projects: [{
name: 'project_name',
repo: 'repo_name',
token: 'token',
rules: [ new RegExp(/.php/g) ]
}],
frequency: 2000
},
hipchat: {
enabled: true,
token: 'API_TOKEN', // Hipchat User's personal API token
github_to_hipchat_users: { // Optional user translation hash for @mentions
mbarany: 'MichaelBarany'
},
blacklist: [ // Optional blacklist of github users that don't want notifs
'thatguy'
]
},
phpcs: {
enabled: false,
artifact: 'artifacts/phpcs.csv'
},
phpunit: {
enabled: false,
artifact: 'artifacts/junit.xml',
failure_limit: 3
}
}
};