diff --git a/dist/952.js b/dist/952.js index f1bd89e6..9ac2de34 100644 --- a/dist/952.js +++ b/dist/952.js @@ -18,7 +18,7 @@ const graphql_1 = __webpack_require__(2634); function githubClient(option) { return new GitHubClient(new client_1.ApolloClient({ link: new client_1.HttpLink({ - uri: "https://api.github.com/graphql", + uri: option.githubGraphqlApiUrl ?? "https://api.github.com/graphql", headers: { authorization: `token ${option.githubToken}` }, fetch: cross_fetch_1.default, }), @@ -543,6 +543,7 @@ const core = __importStar(__webpack_require__(6977)); function getCommonOption() { return { githubToken: getInput("github_token"), + githubGraphqlApiUrl: getInputOrNull("github_graphql_api_url"), workspacePath: getInputOrNull("workspace_path"), repository: getInputOrNull("repository"), pullRequest: getInputNumberOrNull("pull_request"), diff --git a/dist/main.js b/dist/main.js index 046226ff..29ec0f19 100644 --- a/dist/main.js +++ b/dist/main.js @@ -17,7 +17,7 @@ const graphql_1 = __webpack_require__(2634); function githubClient(option) { return new GitHubClient(new client_1.ApolloClient({ link: new client_1.HttpLink({ - uri: "https://api.github.com/graphql", + uri: option.githubGraphqlApiUrl ?? "https://api.github.com/graphql", headers: { authorization: `token ${option.githubToken}` }, fetch: cross_fetch_1.default, }), @@ -482,6 +482,7 @@ const core = __importStar(__webpack_require__(6977)); function getCommonOption() { return { githubToken: getInput("github_token"), + githubGraphqlApiUrl: getInputOrNull("github_graphql_api_url"), workspacePath: getInputOrNull("workspace_path"), repository: getInputOrNull("repository"), pullRequest: getInputNumberOrNull("pull_request"),