Add tag event support in Gitlab remote
This commit is contained in:
parent
c00338ef89
commit
d8e74ebc63
1 changed files with 4 additions and 0 deletions
|
@ -387,6 +387,10 @@ func push(parsed *gogitlab.HookPayload, req *http.Request) (*model.Repo, *model.
|
||||||
build.Author = parsed.UserName
|
build.Author = parsed.UserName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(build.Ref, "refs/tags/") {
|
||||||
|
build.Event = model.EventTag
|
||||||
|
}
|
||||||
|
|
||||||
return repo, build, nil
|
return repo, build, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue