You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fetch star totals via stargazerCount, not the stargazers connection (#313)
Between July 22 and 23 GitHub's GraphQL API stopped serving the
`stargazers` connection to integration tokens (the built-in Actions
GITHUB_TOKEN), answering "Resource not accessible by integration" with the
rest of the document intact. assertNoGraphQLErrors treats any errors array
as fatal, so exactly the two cards whose queries touch that field —
ProfileDetailsCard and StatsCard — failed outright for every Action user
on the default token setup, while PAT-backed runs (and the hosted service)
kept working. Nothing changed on our side: the same release build was
clean on the 22nd and failing on the 23rd (#311).
The queries only ever read `stargazers { totalCount }`. `stargazerCount`
returns the same number, is cheaper, and is verified to work with
integration tokens — swap it in across the profile-details documents
(combined, split core, star pagination) and the organization query.
This also unblocks the planned move of the hosted service onto a GitHub
App installation token, which would have hit the same restriction.
Fixes#311.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments