From e943ec6f4c77b557b36cd6df165d62bd03707c67 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 8 Sep 2025 10:26:35 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/api/pm/pipelines/index.json.jbuilder | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/api/pm/pipelines/index.json.jbuilder b/app/views/api/pm/pipelines/index.json.jbuilder index 5f1401a0b..c8bc89c4d 100644 --- a/app/views/api/pm/pipelines/index.json.jbuilder +++ b/app/views/api/pm/pipelines/index.json.jbuilder @@ -10,6 +10,8 @@ json.projects @pipelines.map(&:project_id).uniq.each do |project_id| json.name project.name json.url "#{Rails.application.config_for(:configuration)['platform_url']}/#{project.owner.name}/#{project.identifier}" pipelines = Action::Pipeline.where(project_id: project.id).order(updated_at: :desc) + pipelines = pipelines.where("pipeline_name like ?", "%#{params[:pipeline_name]}%") if params[:pipeline_name].present? + pipelines = pipelines.where(pipeline_type: params[:pipeline_type]) if params[:pipeline_type].present? json.pipelines pipelines.each do |pipeline| json.extract! pipeline, :id, :project_id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design, :repo_name, :repo_identifier, :branch, :event, :sha, :disable, :json, :yaml, :created_at, :updated_at