Skip to content

gh cli returns different (and incorrect) first entry than what is returned from the ui #9067

@yassinm

Description

@yassinm

Describe the bug

A clear and concise description of what the bug is. Include version by typing gh --version.

 -→ gh version
gh version 2.49.1 (2024-05-08)
https://github.com/cli/cli/releases/tag/v2.49.1

 -→ cat /etc/os-release 
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="23.11.6418.e402c3eb6d88"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 23.11 (Tapir)"
SUPPORT_END="2024-06-30"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="23.11 (Tapir)"
VERSION_CODENAME=tapir
VERSION_ID="23.11"

I am trying to find the last issue number in the repo. i use that to create an issue automatically. its alrways returning the wrong results

Steps to reproduce the behavior

  1. Type this gh issue list -L 10 --repo unnug/pf-track --search "sort:created-desc" --json number --jq '.[].number'
  2. View the output
562
332
331
330
329
  1. See error

Expected vs actual behavior

the ui is correctly reporting the right results as per the attached screencshots

Logs

The first entry in descending order should be issue #631 i am not sure why it is returningthe above

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions