in src/githubApiCreator.ts [7:27]
public static CreateGithubApi(): GitHubApi {
if (!GithubApiCreator.github) {
GithubApiCreator.github = new GitHubApi({
debug: false,
protocol: "https",
host: "api.github.com",
followRedirects: false,
timeout: 10000,
headers: {
"encoding": "null"
}
});
GithubApiCreator.github.authenticate({
type: "oauth",
token: GithubApiCreator.token
});
}
return GithubApiCreator.github;
}