Skip to content

gh issue list -S 'is:pr' returns blank issues #8272

@byorgey

Description

@byorgey

Describe the bug

gh issue list -S 'is:pr' returns the correct number of PR issues, but they are all blank. For example:

$ gh issue list -S 'is:pr' --limit 5
Showing 5 of 31 issues in swarm-game/swarm that match your search

#0      about 292 years ago
#0      about 292 years ago
#0      about 292 years ago
#0      about 292 years ago
#0      about 292 years ago

If I combine -S 'is:pr' with other flags (e.g. --label FOO, -s closed, etc.) I consistently get the expected number of total issues returned, but they are all listed as #0 about 292 years ago. It seems they are all just filled in with default data.

I have tried this in several different repositories (including cli/cli) with the same behavior.

Output of gh --version: gh version 2.37.0 (2023-10-17)

Steps to reproduce the behavior

  1. gh repo clone cli/cli && gh issue list -S 'is:pr'
  2. Observe that the number of issues returned is the same as the number listed at https://github.com/cli/cli/pulls?q=is%3Apr+is%3Aopen , but they are all blank.

Expected vs actual behavior

I expect to see issue numbers, titles, labels, etc. for all the open PRs. I am aware that gh pr list is available, but it seems like gh issue list -S 'is:pr' should work as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoreThis issue is not accepting PRs from outside contributorsgh-issuerelating to the gh issue commandpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions