-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
33 lines (24 loc) · 1.02 KB
/
index.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
// Load dotenv first
require('dotenv').config({silent: true});
var Accuser = require('accuser');
var accuser = new Accuser();
var githubAuthToken = {
"type": "oauth",
"token": process.env.GITHUB_TOKEN
};
accuser.authenticate(githubAuthToken);
var initializeSemesterRepositories = require('./src/semester');
initializeSemesterRepositories(accuser, 'addressbook-level1');
initializeSemesterRepositories(accuser, 'addressbook-level2');
initializeSemesterRepositories(accuser, 'addressbook-level3');
initializeSemesterRepositories(accuser, 'addressbook-level4');
var intializeSeEduRepositories = require('./src/seedu');
intializeSeEduRepositories(accuser, 'addressbook-level1');
intializeSeEduRepositories(accuser, 'addressbook-level2');
intializeSeEduRepositories(accuser, 'addressbook-level3');
intializeSeEduRepositories(accuser, 'addressbook-level4');
var intializeSeEduRcsRepository = require('./src/seedu-rcs');
intializeSeEduRcsRepository(accuser, 'rcs');
console.log ("Server has started");
accuser
.run({assignee: "none"});