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

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

Activity

  1. added
    coreThis issue is not accepting PRs from outside contributors
    enhancementa request to improve CLI
    gh-issuerelating to the gh issue command
    gh-prrelating to the gh pr command
    on Apr 1, 2025
  2. changed the title [-]Commands that interact with classic projects should continue to work in the absence of FGP repository projects permission[/-] [+]Commands that interact with classic projects should continue to work in the absence of Fine Grained Token repository projects permission[/+] on Apr 2, 2025
  3. changed the title [-]Commands that interact with classic projects should continue to work in the absence of Fine Grained Token repository projects permission[/-] [+]Commands that interact with classic projects should continue to work in the absence of GitHub App Installation Access Token repository projects permission[/+] on Apr 2, 2025
  4. williammartin commented on May 7, 2025

    @williammartin
    MemberAuthor

    #10942 should be the last PR in delivering this 🤞

  5. williammartin commented on May 8, 2025

    @williammartin
    MemberAuthor

    I believe that this is now complete with view / create /edit being addressed to the best of my knowledge on issue and pr commands. I'm not aware of any other commands that request projectCards or projects by default, but as with all this kind of work, tracking down the usage is not always so easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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