Merge pull request #2913 from markuscodes1/feature/github-scaffolder-baseurl

Scaffolder backend- provide base url for creating apps in Enterprise GitHub
This commit is contained in:
Fredrik Adelöw
2020-10-16 14:35:33 +02:00
committed by GitHub
4 changed files with 15 additions and 2 deletions
@@ -48,7 +48,8 @@ export default async function createPlugin({
) as RepoVisibilityOptions;
const githubToken = githubConfig.getString('token');
const githubClient = new Octokit({ auth: githubToken });
const githubHost = githubConfig.getOptionalString('host');
const githubClient = new Octokit({ auth: githubToken, baseUrl: githubHost });
const githubPublisher = new GithubPublisher({
client: githubClient,
token: githubToken,