mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 13:51:30 +00:00
PR fixes
This commit is contained in:
parent
01f3dbdb23
commit
7991a8932a
1 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue