1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

Add tag event support in Gitlab remote

This commit is contained in:
Thomas Frössman 2015-11-02 04:31:42 +01:00
parent c00338ef89
commit d8e74ebc63

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
}