Skip to content

Commit a2da478

Browse files
pass baseUrl into Octokit constructor (#1371)
Co-authored-by: Jennifer Shehane <[email protected]>
1 parent 5a231d3 commit a2da478

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
@@ -93701,6 +93701,7 @@ const I = (x) => x
9370193701

9370293702
const detectPrNumber = async () => {
9370393703
const {
93704+
GITHUB_API_URL,
9370493705
GITHUB_SHA,
9370593706
GITHUB_TOKEN,
9370693707
GITHUB_RUN_ID,
@@ -93726,7 +93727,8 @@ const detectPrNumber = async () => {
9372693727
)
9372793728

9372893729
const client = new Octokit({
93729-
auth: GITHUB_TOKEN
93730+
auth: GITHUB_TOKEN,
93731+
baseUrl: GITHUB_API_URL
9373093732
})
9373193733

9373293734
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)