Skip to content

Commit 108b868

Browse files
fix: pass baseUrl into Octokit constructor (#1395)
Co-authored-by: Jennifer Shehane <[email protected]>
1 parent 23d18de commit 108b868

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -93785,7 +93785,8 @@ const getCiBuildId = async () => {
9378593785
GITHUB_SHA,
9378693786
GITHUB_TOKEN,
9378793787
GITHUB_RUN_ID,
93788-
GITHUB_REPOSITORY
93788+
GITHUB_REPOSITORY,
93789+
GITHUB_API_URL
9378993790
} = process.env
9379093791

9379193792
const [owner, repo] = GITHUB_REPOSITORY.split('/')
@@ -93798,7 +93799,8 @@ const getCiBuildId = async () => {
9379893799
)
9379993800

9380093801
const client = new Octokit({
93801-
auth: GITHUB_TOKEN
93802+
auth: GITHUB_TOKEN,
93803+
baseUrl: GITHUB_API_URL
9380293804
})
9380393805

9380493806
const resp = await client.request(

index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ const getCiBuildId = async () => {
522522
GITHUB_SHA,
523523
GITHUB_TOKEN,
524524
GITHUB_RUN_ID,
525-
GITHUB_REPOSITORY
525+
GITHUB_REPOSITORY,
526+
GITHUB_API_URL
526527
} = process.env
527528

528529
const [owner, repo] = GITHUB_REPOSITORY.split('/')
@@ -535,7 +536,8 @@ const getCiBuildId = async () => {
535536
)
536537

537538
const client = new Octokit({
538-
auth: GITHUB_TOKEN
539+
auth: GITHUB_TOKEN,
540+
baseUrl: GITHUB_API_URL
539541
})
540542

541543
const resp = await client.request(

0 commit comments

Comments
 (0)