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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-12 12:09:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-12 12:09:11 +0300
commit0388886f9439fa93efea29a159522aec5643f7c8 (patch)
tree9a4b2305088e62a9745ce598b45aa34e39e59642 /lib/api/entities/project_service_basic.rb
parent8c9dc985b90c353b33cb829caf51f8320171bc15 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/entities/project_service_basic.rb')
-rw-r--r--lib/api/entities/project_service_basic.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/api/entities/project_service_basic.rb b/lib/api/entities/project_service_basic.rb
new file mode 100644
index 00000000000..eb97ca69a82
--- /dev/null
+++ b/lib/api/entities/project_service_basic.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module API
+ module Entities
+ class ProjectServiceBasic < Grape::Entity
+ expose :id, :title
+ expose :slug do |service|
+ service.to_param.dasherize
+ 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