Support GitHub Server API URL
* pass GitHub Server API in Octokkit constructor
This commit is contained in:
parent
adc6552966
commit
05bc46786e
3 changed files with 6 additions and 10 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue