Merge pull request #4841 from fantasticfears/webhook-ping

add event name for ping webhooks in the header
This commit is contained in:
Guo Xiang Tan
2017-05-04 04:54:40 +08:00
committed by GitHub
2 changed files with 63 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ class Admin::WebHooksController < Admin::AdminController
end
def ping
Jobs.enqueue(:emit_web_hook_event, web_hook_id: @web_hook.id, event_type: 'ping')
Jobs.enqueue(:emit_web_hook_event, web_hook_id: @web_hook.id, event_type: 'ping', event_name: 'ping')
render json: success_json
end