The Wayback Machine - https://web.archive.org/web/20201130164913/https://github.com/cli/cli/issues/2477
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

gh-repo-clone can't find Github project wikis #2477

Open
colematt opened this issue Nov 25, 2020 · 2 comments
Open

gh-repo-clone can't find Github project wikis #2477

colematt opened this issue Nov 25, 2020 · 2 comments

Comments

@colematt
Copy link

@colematt colematt commented Nov 25, 2020

Describe the feature or problem you’d like to solve

gh-repo-clone will clone repos, but not the wiki repo associated with it. For example, if this repo had a wiki, then gh repo clone cli/cli works, and git clone https://github.com/cli/cli.wiki.git works, but gh repo clone cli/cli.wiki will give the error GraphQL error: Could not resolve to a Repository with the name 'cli/cli.wiki'.

Proposed solution

Add the ability for Github CLI and/or GraphQL to find the wiki repositories.

Additional context

Add any other context like screenshots or mockups are helpful, if applicable.

@mislav
Copy link
Member

@mislav mislav commented Nov 25, 2020

@colematt Thank you for pointing this out! I agree that gh repo clone cli/cli.wiki should ideally work, but we haven't covered this case yet.

To someone who would want to work on this: the way to approach this would be to detect and strip the .wiki suffix from the repo name, allow the repo existence check to proceed as normal, additionally check if the wiki is enabled for the repo, and finally generate the clone URL as https://github.com/cli/cli.wiki.git.

@gunadhya
Copy link

@gunadhya gunadhya commented Nov 25, 2020

Hi @mislav, I'd like to work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.