You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-30 22:13:45 +02:00
Merge pull request #1255 from bradrydzewski/master
Label tag events for GitHub hooks
This commit is contained in:
@ -345,6 +345,10 @@ func (g *Github) push(r *http.Request) (*model.Repo, *model.Build, error) {
|
||||
if build.Ref == "refs/heads/gh-pages" {
|
||||
return nil, nil, nil
|
||||
}
|
||||
if strings.HasPrefix(build.Ref, "refs/tags/") {
|
||||
// just kidding, this is actually a tag event
|
||||
build.Event = model.EventTag
|
||||
}
|
||||
|
||||
return repo, build, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user