fixed 组织流水线列表接口,组织内所有仓库,分组显示
This commit is contained in:
parent
aed452e144
commit
4b93cab54e
|
@ -9,7 +9,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController
|
||||||
project_gpids = @owner.projects.pluck(:gpid)
|
project_gpids = @owner.projects.pluck(:gpid)
|
||||||
action_runs = Gitea::ActionRun.where(owner_id: @owner.gitea_uid)
|
action_runs = Gitea::ActionRun.where(owner_id: @owner.gitea_uid)
|
||||||
group_data = action_runs.where(status: [1,2]).group(:workflow_id, :status).count
|
group_data = action_runs.where(status: [1,2]).group(:workflow_id, :status).count
|
||||||
pipelines = Action::Pipeline.where(project_id: project_ids).order(updated_at: :desc)
|
pipelines = Action::Pipeline.where(project_id: @project_ids).order(updated_at: :desc)
|
||||||
run_files = Gitea::ActionRun.select(:workflow_id, :repo_id).where(owner_id: @owner.gitea_uid).group(:workflow_id, :repo_id)
|
run_files = Gitea::ActionRun.select(:workflow_id, :repo_id).where(owner_id: @owner.gitea_uid).group(:workflow_id, :repo_id)
|
||||||
db_files = pipelines.pluck(:file_name)
|
db_files = pipelines.pluck(:file_name)
|
||||||
@run_result = []
|
@run_result = []
|
||||||
|
|
Loading…
Reference in New Issue