mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-20 08:51:01 +00:00
Merge pull request #898 from andy-g/fix-webhook-failure
Fixing bug which prevented Webhook notifications on build failure
This commit is contained in:
commit
4a4e82adc5
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue