mach10
mach10 copied to clipboard
gh issue view deprecation error
● Bash(gh issue view 32)
⎿ Error: Exit code 1
GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/.
(repository.issue.projectCards)
● Bash(gh issue view 32 --comments)
⎿ Error: Exit code 1
GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/.
(repository.issue.projectCards)
● Bash(gh issue view 32 --json title,body,state,labels,comments 2>/dev/null | python3 -c "import sys,json; d=json.load(sys.stdin); print('Title:', d['title']); print('…)
⎿ Title: Add source image reference panel alongside correction UI
State: OPEN
---
… +49 lines (ctrl+o to expand)
Assessment
The root cause is an older gh CLI version. Here's what's happening:
- Older versions of
ghinclude theprojectCardsfield in the default GraphQL query forgh issue view - GitHub has sunset the Projects Classic API (changelog), so that field now returns an error
- Newer
ghversions (e.g., 2.87.3) have updated their queries to removeprojectCards, so baregh issue viewworks fine - The
--jsonworkaround succeeds because it constructs a minimal GraphQL query with only the requested fields
Immediate workaround: Upgrade gh to a recent version (2.70+).
Longer-term fix options for mach10:
- Document a minimum
ghversion in the README prerequisites - Migrate bare
gh issue view/gh pr viewcalls to--jsonformat across all commands -- more resilient to version differences and gives structured output
There are 10+ bare gh issue view / gh pr view calls across 11 command files that would be affected. Several commands already use the --json variant successfully.
updated to gh version 2.88.1 (2026-03-12) and this resolved the issue fully, sorry!