Skip to content

Commit

Permalink
Merge pull request #1900 from MeilCli/update/action
Browse files Browse the repository at this point in the history
update actions
  • Loading branch information
MeilCli authored May 22, 2024
2 parents 3f2d605 + 00438bf commit de1726c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/952.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down Expand Up @@ -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"),
Expand Down
3 changes: 2 additions & 1 deletion dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit de1726c

Please sign in to comment.