node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

`repo --list --type private` doesn't list private repos #762

Open vidavidorra opened 4 years ago

vidavidorra commented 4 years ago

Version number 2.8.5

Describe the bug A clear and concise description of what the bug is. gh repo --list --type private doesn't list private repositories. It just lists the public repositories.

To Reproduce Steps to reproduce the behavior:

  1. Run gh repo --list --type private
  2. See error (these are my public repos).
    
    Listing private repos for vidavidorra
    vidavidorra/alfred-bluetooth-control
    forks: 0, stars: 5, issues: 2

...



**Expected behavior**
I'd expect it to show my private repositories.

**Additional context**
The token has proper repo acces to private repo's and specifying the user doesn't change the behaviour.
protoEvangelion commented 4 years ago

Confirmed, I am having the same issue. Looking into it now :)