Merge pull request #1295 from thomasf/master

Add tag event support in Gitlab remote
This commit is contained in:
Brad Rydzewski 2015-11-02 09:39:03 -08:00
commit 6566d55614

View file

@ -387,6 +387,10 @@ func push(parsed *gogitlab.HookPayload, req *http.Request) (*model.Repo, *model.
build.Author = parsed.UserName
}
if strings.HasPrefix(build.Ref, "refs/tags/") {
build.Event = model.EventTag
}
return repo, build, nil
}