Skip to content

Commit 26057aa

Browse files
[BUGFIX] Fix wrong URL resolution at octokit/grapql queries in Github Enterprise (GsActions#54)
* [BUGFIX] Fix wrong URL resolution at octokit/grapql queries in G.Enterprise * [TASK] Ignore IDE related files & folders Co-authored-by: Simon Gilli <[email protected]>
1 parent 8014eb2 commit 26057aa

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ Thumbs.db
9797
# Ignore built ts files
9898
__tests__/runner/*
9999
lib/**/*
100+
101+
# Ignore IDE related files and folders
102+
.idea

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5999,6 +5999,7 @@ function getCommitMessagesFromPullRequest(accessToken, repositoryOwner, reposito
59995999
}
60006000
`;
60016001
const variables = {
6002+
baseUrl: process.env['GITHUB_API_URL'] || 'https://api.github.com',
60026003
repositoryOwner: repositoryOwner,
60036004
repositoryName: repositoryName,
60046005
pullRequestNumber: pullRequestNumber,

src/input-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ async function getCommitMessagesFromPullRequest(
251251
}
252252
`
253253
const variables = {
254+
baseUrl: process.env['GITHUB_API_URL'] || 'https://api.github.com',
254255
repositoryOwner: repositoryOwner,
255256
repositoryName: repositoryName,
256257
pullRequestNumber: pullRequestNumber,

0 commit comments

Comments
 (0)