Manage TAG and BRANCH events sent from gogs

This commit is contained in:
bsauvajon 2016-02-18 09:07:35 +01:00 committed by brice
parent 82c534ad18
commit c8d1fe0468
2 changed files with 1 additions and 1 deletions

View file

@ -5,6 +5,7 @@ const (
EventPull = "pull_request"
EventTag = "tag"
EventDeploy = "deployment"
EventBranch = "branch"
)
const (

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
}