fixed 流水线禁用状态

This commit is contained in:
xxq250 2025-04-09 14:58:24 +08:00
parent 137a67fe53
commit b4fd3b851e
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ json.message "success"
json.pipelines @pipelines.each do |pipeline|
json.extract! pipeline, :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
json.disable @disabled_workflows.include?(pipeline.file_name.to_s.gsub(".gitea/workflows/", ""))
json.pipeline_type pipeline.pipeline_type
json.run_data @run_result.select { |result| result[:filename] == pipeline.file_name }.first
end