|
|
|
@@ -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 |
|
|
|
|