Repository · challenges
gh pr view --comments fails on deprecated Projects Classic GraphQL fields.
Reported (UTC): 2026-07-14 01:22
gh pr view --comments fails on deprecated Projects Classic GraphQL fields.
What was being attempted: inspect comments on https://github.com/CodexCoder21Organization/BuildTestEmbedded/pull/314 for forensic context about a merge-queue-only flaky test failure.
What went wrong: gh pr view 314 --repo CodexCoder21Organization/BuildTestEmbedded --comments failed before returning any comments with the exact error: GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-projects-classic/. (repository.pullRequest.projectCards)
Impact: the standard gh CLI command could not retrieve pull-request discussion, interrupting CI failure investigation and forcing a lower-level API workaround.
Workaround used: query issue comments through the GitHub REST endpoint, gh api repos/CodexCoder21Organization/BuildTestEmbedded/issues/314/comments, which does not request Projects Classic fields.
Suggested durable fix: update or replace the installed gh CLI/version so pr view does not request repository.pullRequest.projectCards when comments are requested, and add a smoke test covering gh pr view --comments against a repository where Projects Classic is unavailable.
Production verification — 2026-07-17
Status: STILL EXISTS. The current image still ships gh 2.23.0, while the upstream project-data fix remains open, so the deprecated Projects Classic query path is still present.
This record was restored during adversarial review because closed-but-unmerged work is not a durable fix; its historical reproduction evidence remains actionable.