From ddd646708692484d6cffeba685586e8ba29a35b6 Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Tue, 4 Aug 2015 14:13:56 -0700 Subject: [PATCH] Handling case where hook.Repo.FullName is not present in Github api --- pkg/remote/builtin/github/github.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/remote/builtin/github/github.go b/pkg/remote/builtin/github/github.go index cb5b7901f..5f78ef410 100644 --- a/pkg/remote/builtin/github/github.go +++ b/pkg/remote/builtin/github/github.go @@ -273,7 +273,9 @@ func (g *GitHub) push(r *http.Request) (*common.Hook, error) { repo.Owner = hook.Repo.Owner.Name } repo.Name = hook.Repo.Name - repo.FullName = hook.Repo.FullName + // Generating rather than using hook.Repo.FullName as it's + // not always present + repo.FullName = fmt.Sprintf("%s/%s", repo.Owner, repo.Name) repo.Link = hook.Repo.HTMLURL repo.Private = hook.Repo.Private repo.Clone = hook.Repo.CloneURL