Method: Kuroko2::Workflow::Notifier::Webhook#notify_failure

Defined in:
lib/autoload/kuroko2/workflow/notifier/webhook.rb

#notify_failureObject



69
70
71
72
73
74
75
76
77
78
# File 'lib/autoload/kuroko2/workflow/notifier/webhook.rb', line 69

def notify_failure
  request(
    build_payload(
      action: 'notify_failure',
      level: 'FAILURE',
      subject: message_builder.failure_text,
      message: @instance.logs.last(2).first.message,
    )
  )
end