Commit eb912a53 authored by Ben Boeckel's avatar Ben Boeckel

api: add enable_ssl_verification to PUT/POST hooks

parent b07f48d5
...@@ -538,6 +538,7 @@ Parameters: ...@@ -538,6 +538,7 @@ Parameters:
- `merge_requests_events` - Trigger hook on merge_requests events - `merge_requests_events` - Trigger hook on merge_requests events
- `tag_push_events` - Trigger hook on push_tag events - `tag_push_events` - Trigger hook on push_tag events
- `note_events` - Trigger hook on note events - `note_events` - Trigger hook on note events
- `enable_ssl_verification` - Do SSL verification when triggering the hook
### Edit project hook ### Edit project hook
...@@ -557,6 +558,7 @@ Parameters: ...@@ -557,6 +558,7 @@ Parameters:
- `merge_requests_events` - Trigger hook on merge_requests events - `merge_requests_events` - Trigger hook on merge_requests events
- `tag_push_events` - Trigger hook on push_tag events - `tag_push_events` - Trigger hook on push_tag events
- `note_events` - Trigger hook on note events - `note_events` - Trigger hook on note events
- `enable_ssl_verification` - Do SSL verification when triggering the hook
### Delete project hook ### Delete project hook
......
...@@ -44,7 +44,8 @@ module API ...@@ -44,7 +44,8 @@ module API
:issues_events, :issues_events,
:merge_requests_events, :merge_requests_events,
:tag_push_events, :tag_push_events,
:note_events :note_events,
:enable_ssl_verification
] ]
@hook = user_project.hooks.new(attrs) @hook = user_project.hooks.new(attrs)
...@@ -75,7 +76,8 @@ module API ...@@ -75,7 +76,8 @@ module API
:issues_events, :issues_events,
:merge_requests_events, :merge_requests_events,
:tag_push_events, :tag_push_events,
:note_events :note_events,
:enable_ssl_verification
] ]
if @hook.update_attributes attrs if @hook.update_attributes attrs
......
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