diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-18 21:07:56 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-10-31 15:42:29 +0300 |
commit | 76690017e28c2e42e58130fe64d7feb92d085b01 (patch) | |
tree | 2b75473a79ffde608df023b9a544feb28a18bf54 /lib | |
parent | b216d9bf85388e34891e392d8c80e72643d639c0 (diff) |
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.rb | 7 |
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 |