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>2022-11-17 14:33:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 14:33:21 +0300
commit7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch)
tree5bdc2229f5198d516781f8d24eace62fc7e589e9 /app/serializers/merge_requests
parent185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff)
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'app/serializers/merge_requests')
-rw-r--r--app/serializers/merge_requests/pipeline_entity.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/serializers/merge_requests/pipeline_entity.rb b/app/serializers/merge_requests/pipeline_entity.rb
index f4fb01604d0..76e75a8ca6d 100644
--- a/app/serializers/merge_requests/pipeline_entity.rb
+++ b/app/serializers/merge_requests/pipeline_entity.rb
@@ -5,6 +5,7 @@ class MergeRequests::PipelineEntity < Grape::Entity
expose :id
expose :active?, as: :active
+ expose :name, if: -> (pipeline, _) { Feature.enabled?(:pipeline_name, pipeline.project) }
expose :path do |pipeline|
project_pipeline_path(pipeline.project, pipeline)
@@ -17,8 +18,12 @@ class MergeRequests::PipelineEntity < Grape::Entity
expose :commit, using: CommitEntity
expose :details do
- expose :name do |pipeline|
- pipeline.present.name
+ expose :event_type_name do |pipeline|
+ pipeline.present.event_type_name
+ end
+
+ expose :name do |pipeline| # To be removed in 15.7
+ pipeline.present.event_type_name
end
expose :artifacts do |pipeline, options|