-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add support for Enterprise repos in Github plugin #6194
Conversation
return g.newGithubClient(httpClient) | ||
} | ||
|
||
func (g *GitHub) newGithubClient(httpClient *http.Client) (*github.Client, error) { |
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.
I do wonder if there's a better function name for this...
|
||
func (g *GitHub) newGithubClient(httpClient *http.Client) (*github.Client, error) { | ||
if g.EnterpriseBaseURL != "" { | ||
return github.NewEnterpriseClient(g.EnterpriseBaseURL, "", httpClient) |
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.
the ""
in the 2nd arg is the Enterprise Upload URL that isn't necessary for the plugin. You can compare this commit to my first commit, but I checked go-github
and as far as I can tell it isn't necessary for this plugin.
Required for all PRs:
#6162