Skip to content

pr list have different results with search date pattern #3838

@fpistm

Description

@fpistm

Describe the bug

$ gh --version
gh version 1.11.0 (2021-06-03)
https://github.com/cli/cli/releases/tag/v1.11.0

Using a search date pattern to get pr list is not complete.

gh runs under Windows.

Steps to reproduce the behavior

  1. Get PR list created between 2 dates:
    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:2017-05-10..2018-05-10
  2. Get full PR list:
    gh pr list --repo stm32duino/Arduino_Core_STM32 -L 1000 --state all --json id,number,title,author,state,labels,createdAt,closedAt,updatedAt,url

Expected vs actual behavior

In the first result it misses (at least) one PR:
stm32duino/Arduino_Core_STM32#57

The 2nd result has it:

  {
    "author": {
      "login": "fpistm"
    },
    "closedAt": "2017-07-10T16:55:34Z",
    "createdAt": "2017-07-07T13:57:40Z",
    "id": "MDExOlB1bGxSZXF1ZXN0MTI5NDEwNTIx",
    "labels": [
      {
        "id": "MDU6TGFiZWw2MDIxNjk4ODE=",
        "name": "Enhancement",
        "description": "",
        "color": "84b6eb"
      }
    ],
    "number": 57,
    "state": "MERGED",
    "title": "Add menu to enable Serial instances and USB interface",
    "updatedAt": "2017-08-07T07:27:38Z",
    "url": "https://github.com/stm32duino/Arduino_Core_STM32/pull/57"
  },

The created date: "createdAt": "2017-07-07T13:57:40Z", should match the search range: --search created:2017-05-10..2018-05-10

Logs

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions