Commit 606d24ff authored by Drew Blessing's avatar Drew Blessing

Merge branch 'irker-service-use-supported-events' into 'master'

Make Irker service check supported_events

63178a95 added the supported_events check for services. Since f84b7eef was just added, we should adjust it accordingly.

See merge request !367
parents c0579757 6ddd4594
......@@ -68,9 +68,15 @@ class IrkerService < Service
'irker'
end
def execute(push_data)
def supported_events
%w(push)
end
def execute(data)
return unless supported_events.include?(data[:object_kind])
IrkerWorker.perform_async(project_id, channels,
colorize_messages, push_data, @settings)
colorize_messages, data, @settings)
end
def fields
......
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