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
Commands that interact with classic projects should continue to work in the absence of GitHub App Installation Access Token repository projects permission #10714
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.