Commit 844d4e24 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 1b8bbe5c
......@@ -26,7 +26,7 @@ class PipelinesEmailService < Service
%w[pipeline]
end
def execute(data, force = false)
def execute(data, force: false)
return unless supported_events.include?(data[:object_kind])
return unless force || should_pipeline_be_notified?(data)
......@@ -66,7 +66,7 @@ class PipelinesEmailService < Service
end
def test(data)
result = execute(data, true)
result = execute(data, force: true)
{ success: true, result: result }
rescue StandardError => error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment