Description
In preparation for sunsetting the projects v1 API, the Fine Grained Token permissions on GitHub app were removed from the UI, which resulted in failures for commands that use projectCards in GQL queries (issue/pr create, issue/pr edit, issue/pr view), with newly generated tokens.
We should modify the CLI so that it continues to work after they remove this, because it's not a good situation for the owning team to continue exposing this token that isn't used for anything.
Acceptance Criteria
Given I am targeting a host that has sunset v1 projects
And Given I have a token that doesn't have Fine Grained Permission for repository projects
When I run commands that currently interact with v1 projects
Then they do not fail horribly with GraphQL: Resource not accessible by integration (repository.pullRequest.projectCards.nodes)
Notes
This does not affect cases in which the user has used the --json flag, or gh api.
The implementation for this may simply be removing requests for projectCards and projects for non-enterprise servers.
Probably use trunk...cli-9430