Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow pr checkout from non-default repository
When working in a mulit-remote pull requests may come from separate repositories. Octo currently lets you list and view PRs from a configurable repository. However, when it comes to checking out a review branch, it only looks at the current default repository via `gh cli`. This change simply provides the PR's repository string to `gh pr checkout` command so non-default repository branches can be checked out as well. Prior to this commit if you did something like `Octo pr edit 1234 owner/repo-b` where `repo-b` is not the default repository and tried to start a review, the PR branch would not be checked out, since its in the non-default repository. Signed-off-by: ldelossa <[email protected]>
- Loading branch information