Browse Source

fixed 组织流水线列表接口,组织内所有仓库,分组显示

pull/348/head^2^2
xxq250 1 year ago
parent
commit
c94111b395
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

@@ -8,7 +8,7 @@ json.projects @project_ids.each do |project_id|
json.identifier project.identifier
json.name project.name
json.url "#{Rails.application.config_for(:configuration)['platform_url']}/#{project.owner.name}/#{project.identifier}"
json.pipelines @pipelines.select { |p| p.repo_id == project_id }.each do |pipeline|
json.pipelines @pipelines.select { |p| p.project_id == project_id }.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 }


Loading…
Cancel
Save