scaffolder-backend: default github api url to api.github.com
This commit is contained in:
@@ -156,7 +156,6 @@ catalog:
|
||||
|
||||
scaffolder:
|
||||
github:
|
||||
host: https://github.com
|
||||
token:
|
||||
$env: GITHUB_TOKEN
|
||||
visibility: public # or 'internal' or 'private'
|
||||
|
||||
@@ -76,7 +76,7 @@ export class Publishers implements PublisherBuilder {
|
||||
|
||||
const githubToken = githubConfig.getString('token');
|
||||
const githubHost =
|
||||
githubConfig.getOptionalString('host') ?? 'https://github.com';
|
||||
githubConfig.getOptionalString('host') ?? 'https://api.github.com';
|
||||
const githubClient = new Octokit({
|
||||
auth: githubToken,
|
||||
baseUrl: githubHost,
|
||||
|
||||
Reference in New Issue
Block a user