mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-26 14:56:38 +00:00
Merge pull request #1295 from thomasf/master
Add tag event support in Gitlab remote
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user