-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
45 lines (41 loc) · 1.03 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
var fs = require('fs');
var columnData = {
toDo: {
name: 'To Do',
order: 0
},
pass: {
name: 'Pass',
order: 2
},
inProg: {
name: 'In Progress',
order: 1
},
fail:{
name: 'Fail',
order: 3
}
}
const assignees = ['ngaruko','lorerod','tatilepizs']
function getToken() {
if(!fs.existsSync('token.json')){
throw new Error('The token.json file is not in this project directory.\n' +
'Create a personal access token and place it in this directory. \n' +
'See https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ for generating a token \n');
}
return JSON.parse(fs.readFileSync('token.json', 'utf8')).token
}
module.exports = {
repoName: 'cht-release-testing',
owner: 'medic',
labels: 'Release Test',
excludeLabels: ['automated','no automation','retired config'],
columnNamesData: columnData,
token: getToken(),
headers: {
'User-Agent': 'medic-qa',
'Accept': 'application/vnd.github.inertia-preview+json'
},
assignees: assignees
}