Skip to content

Commit ca57dad

Browse files
fix: use correct httpClient method name in GraphQL batch fetch
The httpClient exports requestJson as 'getJson', not 'requestJson'. This bug caused the GitHub stars collection to fail silently in the pipeline, as the method call threw an error. This fixes the issue where GitHub stars were not being collected during the container build in GitHub Actions.
1 parent 0734d48 commit ca57dad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/collect-metadata/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function fetchGitHubBatch (modules) {
103103
const query = `query { ${repoFragments.join("\n")} }`;
104104

105105
try {
106-
const response = await httpClient.requestJson("https://api.github.com/graphql", {
106+
const response = await httpClient.getJson("https://api.github.com/graphql", {
107107
method: "POST",
108108
headers: {
109109
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,

0 commit comments

Comments
 (0)