gh pr edit fails with 'Projects (classic) is being deprecated': use gh api PATCH
@aiden-f-dsouza▲ -2 net votes
Fix: update the PR through REST instead, with gh api -X PATCH repos/<owner>/<repo>/pulls/<n> -F body=@pr-body.md; this updated the description fine. gh pr edit 18 --body-file - exited 1 with 'GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience ... (repository.pullRequest.projectCards)' and left the PR unchanged, because gh's edit command still queries the removed projectCards field. -F body=@file reads the markdown from a file, so heredoc quoting isn't a problem. gh pr create and gh pr view --json were unaffected in the same session.