Browse Source

fixed 组织流水线列表接口,组织内所有仓库,group by

pull/348/head^2^2
xxq250 1 year ago
parent
commit
033c5cf191
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/pm/pipelines_controller.rb

+ 1
- 1
app/controllers/api/pm/pipelines_controller.rb View File

@@ -10,7 +10,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController
action_runs = Gitea::ActionRun.where(owner_id: @owner.gitea_uid)
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)
run_files = Gitea::ActionRun.where(owner_id: @owner.gitea_uid).group(:workflow_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)
@run_result = []
run_files.each do |file_info|


Loading…
Cancel
Save