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

Can't open PRs #468

Closed samuelbeek closed 7 years ago

samuelbeek commented 7 years ago

When using this command gh pr --open "test" I get the following response:

Opening pull request #test
fatal: Can't open pull request test.

This used to work just fine. What to do?

henvic commented 7 years ago

It probably can't find the pull request "test" (where I assume "test" is a number, correct?).

Have you moved remotes? If you try with --user foo --repo bar, does it work?

henvic commented 7 years ago

@samuelbeek, maybe you want to logout and login again. A coworker had the same issue you had today and this worked out for him. I don't know why, though.

Maybe permissions scopes changed on GitHub or something.

samuelbeek commented 7 years ago

That fixed it, thanks!