Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akxcix
Copy link

@akxcix akxcix commented Sep 18, 2020

fixes #1768

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! I'd love to see a test case added for this.

Copy link
Contributor

@samcoe samcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for attempting to fixing this bug!

This solution incorrectly handles one use case though. When providing an argument to gh repo create that is in the format of owner/repo or host/owner/repo we skip parsing the name which will result in the incorrect repository name and local directories being created.

Current behavior:
Screen Shot 2020-09-21 at 2 35 35 PM

Pull request behavior:
Screen Shot 2020-09-21 at 2 35 11 PM

I created another PR #1880 that I think should properly handle all the cases.

@akxcix
Copy link
Author

akxcix commented Sep 21, 2020

Thanks @samcoe ! I was struggling to find time to complete @vilmibm's change request and am glad that someone more fitting fixes this. Shall I close my PR myself?
Sorry couldn't be of much help. 😓

@vilmibm
Copy link
Contributor

vilmibm commented Sep 21, 2020

no apologies needed @iamadarshk <3

for posterity, closed by #1880

@vilmibm vilmibm closed this Sep 21, 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

Successfully merging this pull request may close these issues.

gh repo create ignores repository name

3 participants