-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
bugSomething isn't workingSomething isn't workingp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
ghversion.
➜ ~ gh --version
gh version 0.5.5-pre.1 (2020-02-06)
https://github.com/cli/cli/releases/tag/v0.5.5-pre.1Steps to reproduce the behavior
-
Type this
gh pr status -R cli/clion any git repository directory and outside a git repository directory. -
When inside a git repository directory, it works.
➜ ~ git:(feature/test-gh) $ gh pr status -R cli/cli
Relevant pull requests in cli/cli
Current branch
There is no pull request associated with [Clivern:feature/test-gh]
Created by you
You have no open pull requests
Requesting a code review from you
You have no pull requests to review- Error raised when outside a git directory since it try to build a list of PR associated with current repository branch name.
➜ ~ gh pr status -R cli/cli
fatal: not a git repository (or any of the parent directories): .git
git: exit status 128Expected vs actual behavior
It would be nice to ignore the relevant branch PRs if i am outside a repository directory. So I am able to see PRs created by me and PRs requesting my review with the check status for a provided github repository.
May be the command gh pr status -R cli/cli wasn't intended to provide this functionality but i can't get the same functionality with gh pr list -R cli/cli unless there will be extra flags to list PRs created by me and include status checks.
mutecipher, yasuyuky and ad-si
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic