Merge pull request #898 from andy-g/fix-webhook-failure

Fixing bug which prevented Webhook notifications on build failure
This commit is contained in:
Brad Rydzewski 2015-02-25 08:47:41 -07:00
commit 4a4e82adc5

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