mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-31 08:29:37 +00:00
Fixing bug which prevented Webhook notifications on build failure
This commit is contained in:
parent
3f873af78f
commit
dd805c2246
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