Skip to content

Commit

Permalink
Add hint to begin GraphQL for editor (#907)
Browse files Browse the repository at this point in the history
* Add hint to begin GraphQL for editor

* `makers check`
  • Loading branch information
kachick authored Aug 22, 2024
1 parent fd8a010 commit 8993607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32303,6 +32303,7 @@ var PaginatableOctokit = Octokit.plugin(paginateGraphQL);
async function fetchChecks(token, trigger) {
const octokit = new PaginatableOctokit({ auth: token });
const { repository: { object: { checkSuites } } } = await octokit.graphql.paginate(
/* GraphQL */
`
query GetCheckRuns($owner: String!, $repo: String!, $commitSha: String!, $cursor: String) {
repository(owner: $owner, name: $repo) {
Expand Down
2 changes: 1 addition & 1 deletion src/github-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function fetchChecks(
const { repository: { object: { checkSuites } } } = await octokit.graphql.paginate<
{ repository: { object: { checkSuites: Commit['checkSuites'] } } }
>(
`
/* GraphQL */ `
query GetCheckRuns($owner: String!, $repo: String!, $commitSha: String!, $cursor: String) {
repository(owner: $owner, name: $repo) {
object(expression: $commitSha) {
Expand Down

0 comments on commit 8993607

Please sign in to comment.