mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 12:21:03 +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())
|
||||
return
|
||||
}
|
||||
if build.Event == model.EventPush ||
|
||||
build.Event == model.EventPull ||
|
||||
build.Event == model.EventTag ||
|
||||
build.Event == model.EventDeploy {
|
||||
build.Event = c.DefaultQuery("event", build.Event)
|
||||
|
||||
event := c.DefaultQuery("event", build.Event)
|
||||
if event == model.EventPush ||
|
||||
event == model.EventPull ||
|
||||
event == model.EventTag ||
|
||||
event == model.EventDeploy {
|
||||
build.Event = event
|
||||
}
|
||||
build.Deploy = c.DefaultQuery("deploy_to", build.Deploy)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue