Manage TAG and BRANCH events sent from gogs

This commit is contained in:
bsauvajon
2016-08-14 12:26:35 +02:00
committed by brice
parent 82c534ad18
commit c8d1fe0468
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ const (
EventPull = "pull_request"
EventTag = "tag"
EventDeploy = "deployment"
EventBranch = "branch"
)
const (
-1
View File
@@ -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
}