From b74d7c81664779582c8aed8b3c46f2ec983cdd82 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 11 Apr 2025 11:42:03 +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?= 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 00a85f948..e7fcb327c 100644 --- a/app/controllers/api/pm/pipelines_controller.rb +++ b/app/controllers/api/pm/pipelines_controller.rb @@ -15,7 +15,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController @run_result = [] run_files.each do |file_info| file = file_info.workflow_id - project = Project.find_by(gpid: file.repo_id) + project = Project.find_by(gpid: file_info.repo_id) next if project.blank? unless db_files.include?(".gitea/workflows/#{file}") pipeline = Action::Pipeline.new(pipeline_name: file.to_s.gsub(".yml", "").gsub(".yaml", ""),