Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass baseUrl into Octokit constructor #1395

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93785,7 +93785,8 @@ const getCiBuildId = async () => {
GITHUB_SHA,
GITHUB_TOKEN,
GITHUB_RUN_ID,
GITHUB_REPOSITORY
GITHUB_REPOSITORY,
GITHUB_API_URL
} = process.env

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

const client = new Octokit({
auth: GITHUB_TOKEN
auth: GITHUB_TOKEN,
baseUrl: GITHUB_API_URL
})

const resp = await client.request(
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@ const getCiBuildId = async () => {
GITHUB_SHA,
GITHUB_TOKEN,
GITHUB_RUN_ID,
GITHUB_REPOSITORY
GITHUB_REPOSITORY,
GITHUB_API_URL
} = process.env

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

const client = new Octokit({
auth: GITHUB_TOKEN
auth: GITHUB_TOKEN,
baseUrl: GITHUB_API_URL
})

const resp = await client.request(
Expand Down