提交 8d0b4872 编写于 作者: R Robert Speicher

Merge branch 'backport-service-hook-execute-arguments' into 'master'

Backport ServiceHook#execute from EE

See merge request gitlab-org/gitlab-ce!23122
......@@ -5,8 +5,8 @@ class ServiceHook < WebHook
validates :service, presence: true
# rubocop: disable CodeReuse/ServiceClass
def execute(data)
WebHookService.new(self, data, 'service_hook').execute
def execute(data, hook_name = 'service_hook')
WebHookService.new(self, data, hook_name).execute
end
# rubocop: enable CodeReuse/ServiceClass
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册