mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-21 08:58:45 +03:00
@ -584,14 +584,6 @@ func (t *HookTask) deliver() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
t.ResponseInfo.Body = string(p)
|
t.ResponseInfo.Body = string(p)
|
||||||
|
|
||||||
switch t.Type {
|
|
||||||
case SLACK:
|
|
||||||
if t.ResponseInfo.Body != "ok" {
|
|
||||||
log.Error(5, "slack failed with: %s", t.ResponseInfo.Body)
|
|
||||||
t.IsSucceed = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeliverHooks checks and delivers undelivered hooks.
|
// DeliverHooks checks and delivers undelivered hooks.
|
||||||
|
Reference in New Issue
Block a user