From c8d1fe0468452fe7ecc7bbbe5285a27e2638c80d Mon Sep 17 00:00:00 2001 From: bsauvajon Date: Thu, 18 Feb 2016 09:07:35 +0100 Subject: [PATCH] Manage TAG and BRANCH events sent from gogs --- model/const.go | 1 + remote/gogs/gogs.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/model/const.go b/model/const.go index efac6b3bd..761ee0dbc 100644 --- a/model/const.go +++ b/model/const.go @@ -5,6 +5,7 @@ const ( EventPull = "pull_request" EventTag = "tag" EventDeploy = "deployment" + EventBranch = "branch" ) const ( diff --git a/remote/gogs/gogs.go b/remote/gogs/gogs.go index 30981db77..2e5bb95e0 100644 --- a/remote/gogs/gogs.go +++ b/remote/gogs/gogs.go @@ -171,7 +171,6 @@ func (c *client) File(u *model.User, r *model.Repo, b *model.Build, f string) ([ buildRef = b.Ref } cfg, err := client.GetFile(r.Owner, r.Name, buildRef, f) - return cfg, err }