mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
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