mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
Fixing bug which prevented Webhook notifications on build failure
This commit is contained in:
parent
3f873af78f
commit
dd805c2246
@ -18,7 +18,7 @@ func (w *Webhook) Send(context *model.Request) error {
|
||||
switch {
|
||||
case context.Commit.Status == model.StatusSuccess && w.Success != nil && *w.Success == true:
|
||||
return w.send(context)
|
||||
case context.Commit.Status == model.StatusFailure && w.Failure != nil && *w.Success == true:
|
||||
case context.Commit.Status == model.StatusFailure && w.Failure != nil && *w.Failure == true:
|
||||
return w.send(context)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user