fixed 组织流水线列表接口

This commit is contained in:
xxq250 2025-04-11 11:42:03 +08:00
parent d540dadb22
commit b74d7c8166
1 changed files with 1 additions and 1 deletions

View File

@ -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", ""),