From 8cfa8ebbd3587605f76c41803e93732cb4df05a7 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 17 Jun 2026 16:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=BC=A0=E9=80=92=E5=88=B0?= =?UTF-8?q?=E5=AD=90=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/api/pm/pipelines/index.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/api/pm/pipelines/index.json.jbuilder b/app/views/api/pm/pipelines/index.json.jbuilder index 87678b853..574271238 100644 --- a/app/views/api/pm/pipelines/index.json.jbuilder +++ b/app/views/api/pm/pipelines/index.json.jbuilder @@ -11,6 +11,7 @@ json.projects @pipelines.map(&:project_id).uniq.each do |project_id| 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