diff --git a/remote/gitlab/gitlab.go b/remote/gitlab/gitlab.go index e1f024ec..1ae99007 100644 --- a/remote/gitlab/gitlab.go +++ b/remote/gitlab/gitlab.go @@ -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 }