Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Autocompletion gh pr <tab> errors out #1854

Closed
hXtreme opened this issue Sep 19, 2020 · 3 comments
Closed

[Bug] Autocompletion gh pr <tab> errors out #1854

hXtreme opened this issue Sep 19, 2020 · 3 comments

Comments

@hXtreme
Copy link

hXtreme commented Sep 19, 2020

Shell: zsh.
OS: manjaro.

When I try to trigger autocomplete for the pr command I get the following error:

$ gh pr <tab>
_arguments:comparguments:325: invalid option definition: (-R --repo)-R[Select another repository using the `[HOST/]OWNER/REPO` format]:

I am currently located in a git repo with my github repo set as the origin.
I also have a second github repo set as remote.

I also tried the following:

gh pr create -R "hXtreme/repo-name" --fill

which does work as expected, this leads me to belive that gh is getting confused about the remote.

FYI: I've had this repo before installing the github-cli.

@cristiand391
Copy link
Contributor

This is already fixed, are you using the latest gh version?
You can check which version you are using with

gh version

gh version 1.0.0 (2020-09-16)
https://github.com/cli/cli/releases/tag/v1.0.0

@hXtreme
Copy link
Author

hXtreme commented Sep 19, 2020 via email

@cristiand391
Copy link
Contributor

It seems the last update to github-cli-git was from 2020-06-10, before the v1.0.0 release.

You'll have to wait until it gets updated or install the package from the community repo.

@hXtreme hXtreme closed this as completed Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants