提交 606d24ff 编写于 作者: D 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
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册