-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix: Correctly retrieve GitHub enterprise url #858
Conversation
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Oh, I see you've already been working on it. I just created this PR #859, but I'm not an expert either in golang or updatecli code :P |
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Your PR is better as it has tests, so I'll do some suggestion to yours :p |
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
@gerardsegarra In the end I think my PR is in a more advanced state even thought we had the same thing in mind. I improved the spec so we can also specify http protocol in the URL. If no protocol is specified then it fallbacks to https Additional work would be needed if we want to allow the |
Signed-off-by: Olblak <me@olblak.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub correct case (nit)
LGTM otherwise
Thanks @lemeurherve for the review and thanks @gerardsegarra for spotting this issues |
Thank you so much for fixing it! 😄 |
Signed-off-by: Olblak me@olblak.com
Fix #854
Test
To test this pull request, you can run the following commands:
Additional Information
Tradeoff
I don't have access to a GitHub enterprise service to test. But we probably just read to quickly this doc https://github.com/shurcooL/githubv4#usage
Potential improvement