mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
fixed 组织流水线列表接口,组织内所有仓库,分组显示,搜索
This commit is contained in:
@@ -65,8 +65,8 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController
|
||||
Rails.logger.info("@run_result======#{@run_result}")
|
||||
@disabled_workflows = Gitea::RepoUnit.where(repo_id: project_gpids, type: 10).where("config is not null")
|
||||
@pipelines = Action::Pipeline.where(project_id: @project_ids).order(updated_at: :desc)
|
||||
@pipelines = @pipelines.where("pipeline_name like ?", "%#{param[:pipeline_name]}%") if param[:pipeline_name].present?
|
||||
@pipelines = @pipelines.where(pipeline_type: param[:pipeline_type]) if param[:pipeline_type].present?
|
||||
@pipelines = @pipelines.where("pipeline_name like ?", "%#{params[:pipeline_name]}%") if params[:pipeline_name].present?
|
||||
@pipelines = @pipelines.where(pipeline_type: params[:pipeline_type]) if params[:pipeline_type].present?
|
||||
@pipelines = @pipelines
|
||||
@pipelines = paginate @pipelines
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user