Support GitHub Server API URL

* pass GitHub Server API in Octokkit constructor
This commit is contained in:
Johannes Nicolai 2021-01-25 19:16:19 +01:00
parent adc6552966
commit 05bc46786e
3 changed files with 6 additions and 10 deletions

View file

@ -23,6 +23,7 @@ export class GitHubHelper {
if (token) {
options.auth = `${token}`
}
options.baseUrl = process.env['GITHUB_API_URL'] || 'https://api.github.com'
this.octokit = new Octokit(options)
}