Skip to content

gh pr view should include projectsV2 output #11409

Description

@andyfeller

Describe the feature or problem you’d like to solve

Given I have a pull request in a non-classic project (projectsV2)
When I run gh pr view (TTY or not TTY)
Then the projects section should mention the project

Related #10708

Additional context

See pull request has projectItems which is projectsV2:

$ gh pr view https://andyfeller-0ee0571e6658472ea.qaboot.net/ghe-admin/v1-repo-projects/pull/3 --json projectCards,projectItems
Working...
{
  "projectCards": [
    {
      "project": {
        "name": "v1 project"
      },
      "column": {
        "name": ""
      }
    }
  ],
  "projectItems": [
    {
      "status": {
        "optionId": "",
        "name": ""
      },
      "title": "v2 team planning"
    }
  ]
}

But it's not included in the standard view outputs, only v2 classic projects are (this example is TTY but same for non-TTY)

$ gh pr view https://andyfeller-0ee0571e6658472ea.qaboot.net/ghe-admin/v1-repo-projects/pull/3 
Working...
just a PR title ghe-admin/v1-repo-projects#3
Open • ghe-admin wants to merge 1 commit into main from sample-changes • about 1 day ago
+3 -0 • No checks
Projects: v1 project (Awaiting triage)


  just a PR body                                                                                                      


View this pull request on GitHub: https://andyfeller-0ee0571e6658472ea.qaboot.net/ghe-admin/v1-repo-projects/pull/3

Activity

  1. github-actions commented on Jul 30, 2025

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  2. self-assigned this
    on Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIgh-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