Browse Source

fixed 组织流水线启用禁用状态

pull/348/head^2^2
xxq250 1 year ago
parent
commit
5c62b1d129
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/api/pm/pipelines/index.json.jbuilder

+ 1
- 1
app/views/api/pm/pipelines/index.json.jbuilder View File

@@ -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…
Cancel
Save