From 43b82d0e6922a64f99f4b1472075e33b6918279c Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 21 Apr 2017 11:42:13 -0300 Subject: [PATCH] possible fix for #186 --- client/github.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/client/github.go b/client/github.go index 5829becf4..f02b6862c 100644 --- a/client/github.go +++ b/client/github.go @@ -76,15 +76,9 @@ func (c *githubClient) GetInfo(ctx *context.Context) (info Info, err error) { if err != nil { return } - if rep.Homepage != nil { - info.Homepage = *rep.Homepage - } - if rep.HTMLURL != nil { - info.URL = *rep.HTMLURL - } - if rep.Description != nil { - info.Description = *rep.Description - } + info.Homepage = rep.GetHomepage() + info.URL = rep.GetHTMLURL() + info.Description = rep.GetDescription() return } @@ -107,16 +101,16 @@ func (c *githubClient) CreateRelease(ctx *context.Context, body string) (release ctx.Config.Release.GitHub.Name, data, ) - return *r.ID, err + return r.GetID(), err } r, _, err = c.client.Repositories.EditRelease( ctx, ctx.Config.Release.GitHub.Owner, ctx.Config.Release.GitHub.Name, - *r.ID, + r.GetID(), data, ) - return *r.ID, err + return r.GetID(), err } func (c *githubClient) Upload(