19 lines
884 B
Ruby
19 lines
884 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
class ProjectHook < Hook
|
|
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
|