1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

merge fixes

This commit is contained in:
Carlos Alexandro Becker
2017-09-24 14:25:21 -03:00
parent 632d206848
commit 4fefd7608e
5 changed files with 6 additions and 7 deletions

View File

@ -22,8 +22,8 @@ func NewGitHub(ctx *context.Context, repo config.Repo) (Client, error) {
&oauth2.Token{AccessToken: ctx.Token},
)
client := github.NewClient(oauth2.NewClient(ctx, ts))
if repo.ApiURL != "" {
url, err := url.Parse(repo.ApiURL)
if repo.APIURL != "" {
url, err := url.Parse(repo.APIURL)
if err != nil {
return &githubClient{}, err
}