feat: initial support for healthchecks.io notifications (#480)

This commit is contained in:
Francisco Javier
2024-09-24 04:40:38 +02:00
committed by GitHub
parent 7e65f1a700
commit f6ee51fce5
14 changed files with 410 additions and 104 deletions

View File

@@ -98,7 +98,7 @@ func newOneoffRunHookTask(title, instanceID, repoID, planID string, parentOp *v1
clone.FieldByName("Event").Set(reflect.ValueOf(event))
}
if err := h.Execute(ctx, hook, clone, taskRunner); err != nil {
if err := h.Execute(ctx, hook, clone, taskRunner, event); err != nil {
err = applyHookErrorPolicy(hook.OnError, err)
return err
}