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

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

Make Irker service check supported_events

c65d4f827e92 added the supported_events check for services. Since e9d8abd35cd3 was just added, we should adjust it accordingly.

See merge request !367
......@@ -68,9 +68,15 @@ def to_param
'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