From c94111b3951a4cad4ec0781fbec720e64e059c1c Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 17 Apr 2025 10:28:49 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=BB=84=E7=BB=87=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3,=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E5=86=85=E6=89=80=E6=9C=89=E4=BB=93=E5=BA=93,?= =?UTF-8?q?=E5=88=86=E7=BB=84=E6=98=BE=E7=A4=BA?= 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, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api/pm/pipelines/index.json.jbuilder b/app/views/api/pm/pipelines/index.json.jbuilder index 60a71e880..975d36314 100644 --- a/app/views/api/pm/pipelines/index.json.jbuilder +++ b/app/views/api/pm/pipelines/index.json.jbuilder @@ -8,7 +8,7 @@ json.projects @project_ids.each do |project_id| json.identifier project.identifier json.name project.name json.url "#{Rails.application.config_for(:configuration)['platform_url']}/#{project.owner.name}/#{project.identifier}" - json.pipelines @pipelines.select { |p| p.repo_id == project_id }.each do |pipeline| + json.pipelines @pipelines.select { |p| p.project_id == project_id }.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 repo_config = @disabled_workflows.select { |config| config.repo_id = pipeline.project.gpid }