From 13aa6fda3d344118e14719e96ebfd7e01305c53b Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 26 Oct 2015 13:10:46 -0700 Subject: [PATCH] properly label tag events for GitHub --- remote/github/github.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/remote/github/github.go b/remote/github/github.go index fd90996aa..af36ce486 100644 --- a/remote/github/github.go +++ b/remote/github/github.go @@ -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 }