2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ProjectHook < Hook
|
2023-01-13 00:05:48 +05:30
|
|
|
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-*' }
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|