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>
lemeurherve
left a comment
There was a problem hiding this comment.
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