fixed 组织流水线启用禁用状态
This commit is contained in:
parent
3d9f037025
commit
5c62b1d129
|
@ -13,7 +13,7 @@ json.projects @pipelines.map(&:project_id).uniq.each do |project_id|
|
|||
json.pipelines pipelines.each do |pipeline|
|
||||
json.extract! pipeline, :id, :project_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
|
||||
repo_config = @disabled_workflows.select { |config| config.repo_id = pipeline.project.gpid }
|
||||
repo_config = @disabled_workflows.select { |config| config.repo_id == pipeline.project.gpid }
|
||||
if repo_config.present?
|
||||
json.disable JSON.parse(repo_config.first.config)["DisabledWorkflows"].to_s.include?(pipeline.file_name.to_s.gsub(".gitea/workflows/", ""))
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue