Skip to content

fix: avoid deprecated gh issue project cards query#928

Open
ousamabenyounes wants to merge 1 commit into
mksglu:nextfrom
ousamabenyounes:fix/issue-890
Open

fix: avoid deprecated gh issue project cards query#928
ousamabenyounes wants to merge 1 commit into
mksglu:nextfrom
ousamabenyounes:fix/issue-890

Conversation

@ousamabenyounes

Copy link
Copy Markdown
Collaborator

What

Replace bare gh issue view examples with explicit --json field selections so GitHub CLI does not request the deprecated repository.issue.projectCards field.

Fixes #890.

Why

The bare issue-view examples can fail in current GitHub CLI flows because the default GraphQL query includes deprecated project card data. The guidance now asks only for the fields needed by context-mode issue triage.

Coverage added

  • Added regression coverage that scans the server guidance and ops triage guide for bare gh issue view examples.
  • Locks the safe --json number,title,body,comments example shape.

Test plan

  • rtk test npx vitest run tests/core/server.test.ts -t "ctx_batch_execute GitHub issue examples"
  • RED proof: reverted src/server.ts and .claude/skills/context-mode-ops/triage-issue.md, then reran the same focused test and observed failure.
  • rtk test npm run typecheck
  • gh issue view 890 --repo mksglu/context-mode --json number,title,body,comments --jq .number returned 890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant