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
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.pullRequest.projectCards)
Expected vs actual behavior
Expected: PR body should be updated successfully
Actual: Command fails with GraphQL error about Projects (classic) deprecation
Describe the bug
gh pr editcommand fails with GraphQL error about Projects (classic) deprecation, even when not using any project-related flags.Affected version
Steps to reproduce
gh pr edit <pr_number> --body-file /tmp/release-pr.mdError output
Expected vs actual behavior
Expected: PR body should be updated successfully
Actual: Command fails with GraphQL error about Projects (classic) deprecation
Additional context
gh pr editreturns an error with--add-project#10681 (closed in April 2025)--add-projectflagghis queryingprojectCardsfield even when not neededWorkaround
None currently available - the command completely fails.
Suggested fix
The GitHub CLI should:
projectCardsfield unless explicitly needed (e.g., when using--add-project)