summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-10-18 20:07:56 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-10-31 13:42:29 +0100
commit76690017e28c2e42e58130fe64d7feb92d085b01 (patch)
tree2b75473a79ffde608df023b9a544feb28a18bf54 /lib
parentb216d9bf85388e34891e392d8c80e72643d639c0 (diff)
downloadgitlab-ce-76690017e28c2e42e58130fe64d7feb92d085b01.tar.gz
Expose more data on the SystemHooks API
Now exposed: - push_events - tag_push_events - enable_ssl_verification - token Fixes gitlab-org/gitlab-ce#23307
Diffstat (limited to 'lib')
-rw-r--r--lib/api/entities.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index feaa0c213bf..c6c7747d022 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -43,14 +43,13 @@ module API
end
class Hook < Grape::Entity
- expose :id, :url, :created_at
+ expose :id, :url, :created_at, :push_events, :tag_push_events
+ expose :enable_ssl_verification, :token
end
class ProjectHook < Hook
- expose :project_id, :push_events
- expose :issues_events, :merge_requests_events, :tag_push_events
+ expose :project_id, :issues_events, :merge_requests_events
expose :note_events, :build_events, :pipeline_events, :wiki_page_events
- expose :enable_ssl_verification
end
class BasicProjectDetails < Grape::Entity