mirror of
https://github.com/harness/drone.git
synced 2025-05-10 22:21:22 +08:00
properly label tag events for GitHub
This commit is contained in:
parent
832ae41fc6
commit
13aa6fda3d
@ -345,6 +345,10 @@ func (g *Github) push(r *http.Request) (*model.Repo, *model.Build, error) {
|
|||||||
if build.Ref == "refs/heads/gh-pages" {
|
if build.Ref == "refs/heads/gh-pages" {
|
||||||
return nil, nil, nil
|
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
|
return repo, build, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user