From 5deb1f085f6c2c5bd1c3a6a88ad58ff851d88863 Mon Sep 17 00:00:00 2001 From: Mungo Dewar Date: Tue, 25 Feb 2025 16:13:36 +0000 Subject: [PATCH] pass baseUrl into Octokit constructor --- dist/index.js | 4 +++- index.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7a350fc90..227a39741 100644 --- a/dist/index.js +++ b/dist/index.js @@ -93693,6 +93693,7 @@ const I = (x) => x const detectPrNumber = async () => { const { + GITHUB_API_URL, GITHUB_SHA, GITHUB_TOKEN, GITHUB_RUN_ID, @@ -93718,7 +93719,8 @@ const detectPrNumber = async () => { ) const client = new Octokit({ - auth: GITHUB_TOKEN + auth: GITHUB_TOKEN, + baseUrl: GITHUB_API_URL }) if (GITHUB_HEAD_REF) { diff --git a/index.js b/index.js index 80a0c9252..3ddccadc2 100644 --- a/index.js +++ b/index.js @@ -438,6 +438,7 @@ const I = (x) => x const detectPrNumber = async () => { const { + GITHUB_API_URL, GITHUB_SHA, GITHUB_TOKEN, GITHUB_RUN_ID, @@ -463,7 +464,8 @@ const detectPrNumber = async () => { ) const client = new Octokit({ - auth: GITHUB_TOKEN + auth: GITHUB_TOKEN, + baseUrl: GITHUB_API_URL }) if (GITHUB_HEAD_REF) {