fixed 组织流水线按仓库分页
This commit is contained in:
parent
ed8593071f
commit
3d9f037025
|
@ -9,7 +9,7 @@ json.projects @pipelines.map(&:project_id).uniq.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}"
|
||||
pipelines = Action::Pipeline.where(project_id: @project.id).order(updated_at: :desc)
|
||||
pipelines = Action::Pipeline.where(project_id: project.id).order(updated_at: :desc)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue