Skip to content
Snippets Groups Projects
Commit db0cdee6 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Expose pipeline_events in the API

parent ef061371
No related branches found
No related tags found
1 merge request!5525Implement Slack integration for pipeline hooks
Pipeline #
Loading
Loading
@@ -48,7 +48,8 @@ module API
 
class ProjectHook < Hook
expose :project_id, :push_events
expose :issues_events, :merge_requests_events, :tag_push_events, :note_events, :build_events
expose :issues_events, :merge_requests_events, :tag_push_events
expose :note_events, :build_events, :pipeline_events
expose :enable_ssl_verification
end
 
Loading
Loading
@@ -340,7 +341,8 @@ module API
 
class ProjectService < Grape::Entity
expose :id, :title, :created_at, :updated_at, :active
expose :push_events, :issues_events, :merge_requests_events, :tag_push_events, :note_events, :build_events
expose :push_events, :issues_events, :merge_requests_events
expose :tag_push_events, :note_events, :build_events, :pipeline_events
# Expose serialized properties
expose :properties do |service, options|
field_names = service.fields.
Loading
Loading
Loading
Loading
@@ -45,6 +45,7 @@ module API
:tag_push_events,
:note_events,
:build_events,
:pipeline_events,
:enable_ssl_verification
]
@hook = user_project.hooks.new(attrs)
Loading
Loading
@@ -78,6 +79,7 @@ module API
:tag_push_events,
:note_events,
:build_events,
:pipeline_events,
:enable_ssl_verification
]
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment