8000 `gh pr list` do not show some PR · Issue #7538 · cli/cli · GitHub
[go: up one dir, main page]

Skip to content
gh pr list do not show some PR #7538
@fpistm

Description

@fpistm

Describe the bug

$ gh --version
gh version 2.30.0 (2023-05-30)
https://github.com/cli/cli/releases/tag/v2.30.0

when using gh pr list, some PR are not listed while they should.

Here an example resulting in an empty list

$ gh pr list --repo stm32duino/Arduino_Core_STM32 -L 1000 --state all --json "id,number,title,author,state,labels,createdAt,closedAt,updatedAt,url" --search created:2022-10-07..2022-10-12
[]

while a PR should be listed:

$ gh pr view --repo stm32duino/Arduino_Core_STM32 1845 --json "id,number,title,author,state,labels,createdAt,closedAt,updatedAt,url"
{
  "author": {
    "id": "MDQ6VXNlcjExNzk0NjEx",
    "is_bot": false,
    "login": "mikaelsundin",
    "name": "Mikael Sundin"
  },
  "closedAt": "2022-10-11T13:52:58Z",
  "createdAt": "2022-10-08T20:34:56Z",
  "id": "PR_kwDOBWqIu85AcEns",
  "labels": [
    {
      "id": "MDU6TGFiZWw2MDIxNjk4ODE=",
      "name": "Enhancement",
      "description": "",
      "color": "84b6eb"
    }
  ],
  "number": 1845,
  "state": "MERGED",
  "title": "Added F13-F24 to USB HID.",
  "updatedAt": "2022-10-11T13:52:58Z",
  "url": "https://github.com/stm32duino/Arduino_Core_STM32/pull/1845"
}

It occurs for several PR.

Steps to reproduce the behavior

  1. gh pr list --repo stm32duino/Arduino_Core_STM32 -L 1000 --state all --json "id,number,title,author,state,labels,createdAt,closedAt,updatedAt,url" --search created:2022-10-07..2022-10-12
  2. Empty result which is wrong

Expected vs actual behavior

Having the PR listed.

Logs

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatformProblems with the GitHub platform rather than 3727 the CLI client

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0