Skip to content

chore: add github.com user id association #14045

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

Merged
merged 11 commits into from
Aug 2, 2024
Prev Previous commit
Next Next commit
Fix gh url var name
  • Loading branch information
kylecarbs committed Aug 2, 2024
commit b1229f5bf373313d1425968d24dd88fb57d04142
4 changes: 2 additions & 2 deletions coderd/externalauth/externalauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,9 +968,9 @@ func (r roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
// IsGithubDotComURL returns true if the given URL is a github.com URL.
func IsGithubDotComURL(str string) bool {
str = strings.ToLower(str)
ghUrl, err := url.Parse(str)
ghURL, err := url.Parse(str)
if err != nil {
return false
}
return ghUrl.Host == "github.com"
return ghURL.Host == "github.com"
}