From 033c5cf19176554d150fcc77cc0386bbedbeaf48 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 17 Apr 2025 09:13:34 +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,group=20?= =?UTF-8?q?by?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/pm/pipelines_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/pm/pipelines_controller.rb b/app/controllers/api/pm/pipelines_controller.rb index 04ad88d7f..af8f6d75d 100644 --- a/app/controllers/api/pm/pipelines_controller.rb +++ b/app/controllers/api/pm/pipelines_controller.rb @@ -10,7 +10,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController action_runs = Gitea::ActionRun.where(owner_id: @owner.gitea_uid) group_data = action_runs.where(status: [1,2]).group(:workflow_id, :status).count pipelines = Action::Pipeline.where(project_id: project_ids).order(updated_at: :desc) - run_files = Gitea::ActionRun.where(owner_id: @owner.gitea_uid).group(:workflow_id) + run_files = Gitea::ActionRun.select(:workflow_id, :repo_id).where(owner_id: @owner.gitea_uid).group(:workflow_id, :repo_id) db_files = pipelines.pluck(:file_name) @run_result = [] run_files.each do |file_info|