This commit is contained in:
Jeff Storey 2016-03-28 16:50:51 -04:00
parent 01f3dbdb23
commit 7991a8932a

View file

@ -228,11 +228,13 @@ func PostBuild(c *gin.Context) {
c.String(500, err.Error()) c.String(500, err.Error())
return return
} }
if build.Event == model.EventPush ||
build.Event == model.EventPull || event := c.DefaultQuery("event", build.Event)
build.Event == model.EventTag || if event == model.EventPush ||
build.Event == model.EventDeploy { event == model.EventPull ||
build.Event = c.DefaultQuery("event", build.Event) event == model.EventTag ||
event == model.EventDeploy {
build.Event = event
} }
build.Deploy = c.DefaultQuery("deploy_to", build.Deploy) build.Deploy = c.DefaultQuery("deploy_to", build.Deploy)
} }