forked from javascript-tutorial/translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
37 lines (34 loc) · 889 Bytes
/
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
const path = require('path');
const fs = require('fs');
const _ = require('lodash');
const config = {
projectRoot: process.cwd(),
cacheRoot: path.join(process.cwd(), 'cache'),
repoRoot: path.join(process.cwd(), 'repo'),
secret: require('/js/secret/translate'),
owner: "iliakan",
org: "javascript-tutorial",
botUser: "javascript-translate-bot",
repoSuffix: "javascript.info",
langMain: "en",
teamMain: "translate",
labels: _.keyBy([{
name: "needs +1",
color: '3b22e2',
}, {
name: "review needed",
color: 'b72d32'
}, {
name: "changes requested",
color: '82ffdf'
}, {
name: 'ready to merge',
color: '006400'
}], 'name')
};
config.langs = {};
for(let file of fs.readdirSync(path.join(__dirname, 'langs'))) {
let lang = require(path.join(__dirname, 'langs', file));
config.langs[lang.code] = lang;
}
module.exports = config;