Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities/project_hook.rb')
-rw-r--r--lib/api/entities/project_hook.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/api/entities/project_hook.rb b/lib/api/entities/project_hook.rb
index 6c71e5d317c..bffb057abed 100644
--- a/lib/api/entities/project_hook.rb
+++ b/lib/api/entities/project_hook.rb
@@ -3,10 +3,17 @@
module API
module Entities
class ProjectHook < Hook
- expose :project_id, :issues_events, :confidential_issues_events
- expose :note_events, :confidential_note_events, :pipeline_events, :wiki_page_events, :deployment_events
- expose :job_events, :releases_events
- expose :push_events_branch_filter
+ expose :project_id, documentation: { type: 'string', example: 1 }
+ expose :issues_events, documentation: { type: 'boolean' }
+ expose :confidential_issues_events, documentation: { type: 'boolean' }
+ expose :note_events, documentation: { type: 'boolean' }
+ expose :confidential_note_events, documentation: { type: 'boolean' }
+ expose :pipeline_events, documentation: { type: 'boolean' }
+ expose :wiki_page_events, documentation: { type: 'boolean' }
+ expose :deployment_events, documentation: { type: 'boolean' }
+ expose :job_events, documentation: { type: 'boolean' }
+ expose :releases_events, documentation: { type: 'boolean' }
+ expose :push_events_branch_filter, documentation: { type: 'string', example: 'my-branch-*' }
end
end
end