From 976c5c4981e226245a5570c5758139d1496f1576 Mon Sep 17 00:00:00 2001 From: nv35 <76777923+nv35@users.noreply.github.com> Date: Wed, 22 Jun 2022 18:14:43 +0200 Subject: [PATCH] Add missing API switch for GHES (#200) --- src/types/githubClient.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/githubClient.ts b/src/types/githubClient.ts index d4f61afe..7238f94f 100644 --- a/src/types/githubClient.ts +++ b/src/types/githubClient.ts @@ -24,6 +24,7 @@ export class GitHubClient { const octokit = new RetryOctokit({ auth: this.token, request: { retries: RETRY_COUNT }, + baseUrl: process.env["GITHUB_API_URL"] || "https://api.github.com", }); const [owner, repo] = this.repository.split("/");