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:
Diffstat (limited to 'lib/api/ci/pipelines.rb')
-rw-r--r--lib/api/ci/pipelines.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/ci/pipelines.rb b/lib/api/ci/pipelines.rb
index 809a9bd781b..bd5c04f401b 100644
--- a/lib/api/ci/pipelines.rb
+++ b/lib/api/ci/pipelines.rb
@@ -76,10 +76,8 @@ module API
authorize! :read_pipeline, user_project
authorize! :read_build, user_project
- params.delete(:name) unless ::Feature.enabled?(:pipeline_name_in_api, user_project)
-
pipelines = ::Ci::PipelinesFinder.new(user_project, current_user, params).execute
- pipelines = pipelines.preload_pipeline_metadata if ::Feature.enabled?(:pipeline_name_in_api, user_project)
+ pipelines = pipelines.preload_pipeline_metadata
present paginate(pipelines), with: Entities::Ci::PipelineBasicWithMetadata, project: user_project
end