fixed 流水线禁用状态

This commit is contained in:
xxq250 2025-04-09 15:04:31 +08:00
parent 19783ac526
commit dbde8aad7c
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@ json.status 0
json.message "success"
json.extract! @pipeline, :id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design, :pipeline_type,
:repo_name, :repo_identifier, :branch, :event, :sha, :json, :yaml, :created_at, :updated_at
json.disable @disabled_workflows.include?(pipeline.file_name.to_s.gsub(".gitea/workflows/", ""))
json.disable @disabled_workflows.include?(@pipeline.file_name.to_s.gsub(".gitea/workflows/", ""))