1
0
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:
Andy Gardner 2015-02-25 12:23:16 +02:00
parent 3f873af78f
commit dd805c2246

View File

@ -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)
}