2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
2021-09-30 23:02:18 +05:30
|
|
|
class ProjectIntegrationBasic < Grape::Entity
|
2020-03-13 15:44:24 +05:30
|
|
|
expose :id, :title
|
2021-09-30 23:02:18 +05:30
|
|
|
expose :slug do |integration|
|
|
|
|
integration.to_param.dasherize
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
expose :created_at, :updated_at, :active
|
|
|
|
expose :commit_events, :push_events, :issues_events, :confidential_issues_events
|
|
|
|
expose :merge_requests_events, :tag_push_events, :note_events
|
|
|
|
expose :confidential_note_events, :pipeline_events, :wiki_page_events
|
|
|
|
expose :job_events, :comment_on_event_enabled
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|