1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-21 12:17:03 +02:00

possible fix for #186

This commit is contained in:
Carlos Alexandro Becker 2017-04-21 11:42:13 -03:00
parent 5e6c8b2f41
commit 43b82d0e69
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -76,15 +76,9 @@ func (c *githubClient) GetInfo(ctx *context.Context) (info Info, err error) {
if err != nil { if err != nil {
return return
} }
if rep.Homepage != nil { info.Homepage = rep.GetHomepage()
info.Homepage = *rep.Homepage info.URL = rep.GetHTMLURL()
} info.Description = rep.GetDescription()
if rep.HTMLURL != nil {
info.URL = *rep.HTMLURL
}
if rep.Description != nil {
info.Description = *rep.Description
}
return return
} }
@ -107,16 +101,16 @@ func (c *githubClient) CreateRelease(ctx *context.Context, body string) (release
ctx.Config.Release.GitHub.Name, ctx.Config.Release.GitHub.Name,
data, data,
) )
return *r.ID, err return r.GetID(), err
} }
r, _, err = c.client.Repositories.EditRelease( r, _, err = c.client.Repositories.EditRelease(
ctx, ctx,
ctx.Config.Release.GitHub.Owner, ctx.Config.Release.GitHub.Owner,
ctx.Config.Release.GitHub.Name, ctx.Config.Release.GitHub.Name,
*r.ID, r.GetID(),
data, data,
) )
return *r.ID, err return r.GetID(), err
} }
func (c *githubClient) Upload( func (c *githubClient) Upload(