Skip to content

Commands that interact with classic projects should continue to work in the absence of GitHub App Installation Access Token repository projects permission #10714

@williammartin

Description

@williammartin

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

Metadata

Metadata

Assignees

Labels

coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIgh-issuerelating to the gh issue commandgh-prrelating to the gh pr command

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions