MCPcopy Create free account
hub / github.com/alibaba/open-code-review / graphql

Function graphql

scripts/github-actions/check-pr-commit-policy.test.js:78–90  ·  view source on GitHub ↗
(query, variables)

Source from the content-addressed store, hash-verified

76 },
77 },
78 async graphql(query, variables) {
79 assert.ok(query.includes("commits(first: 100, after: $cursor)"));
80 assert.ok(!query.includes("body"));
81 assert.deepStrictEqual(
82 { owner: variables.owner, repo: variables.repo, number: variables.number },
83 VARIABLES
84 );
85 calls.push(variables);
86 assert.ok(calls.length <= pages.length, "unexpected API call");
87 const response = pages[calls.length - 1];
88 if (response instanceof Error) throw response;
89 return response;
90 },
91 };
92}
93

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected