Skip to content

Commit 5deb1f0

Browse files
committed
pass baseUrl into Octokit constructor
1 parent 1052aa9 commit 5deb1f0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -93693,6 +93693,7 @@ const I = (x) => x
9369393693

9369493694
const detectPrNumber = async () => {
9369593695
const {
93696+
GITHUB_API_URL,
9369693697
GITHUB_SHA,
9369793698
GITHUB_TOKEN,
9369893699
GITHUB_RUN_ID,
@@ -93718,7 +93719,8 @@ const detectPrNumber = async () => {
9371893719
)
9371993720

9372093721
const client = new Octokit({
93721-
auth: GITHUB_TOKEN
93722+
auth: GITHUB_TOKEN,
93723+
baseUrl: GITHUB_API_URL
9372293724
})
9372393725

9372493726
if (GITHUB_HEAD_REF) {

index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ const I = (x) => x
438438

439439
const detectPrNumber = async () => {
440440
const {
441+
GITHUB_API_URL,
441442
GITHUB_SHA,
442443
GITHUB_TOKEN,
443444
GITHUB_RUN_ID,
@@ -463,7 +464,8 @@ const detectPrNumber = async () => {
463464
)
464465

465466
const client = new Octokit({
466-
auth: GITHUB_TOKEN
467+
auth: GITHUB_TOKEN,
468+
baseUrl: GITHUB_API_URL
467469
})
468470

469471
if (GITHUB_HEAD_REF) {

0 commit comments

Comments
 (0)