diff --git a/model/const.go b/model/const.go index efac6b3b..761ee0db 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 30981db7..2e5bb95e 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 }