From 96254f0cc46f77834a496973d24657a9fd2dc910 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 18 Dec 2024 11:24:10 +0800 Subject: [PATCH] fixed run_results --- app/controllers/api/v1/projects/pipelines_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/projects/pipelines_controller.rb b/app/controllers/api/v1/projects/pipelines_controller.rb index 0f20df969..68305a40b 100644 --- a/app/controllers/api/v1/projects/pipelines_controller.rb +++ b/app/controllers/api/v1/projects/pipelines_controller.rb @@ -109,7 +109,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController @project, @owner = Project.find_with_namespace(params[:owner], params[:repo]) tip_exception("项目不存在") if @project.blank? results = Action::PipelineResult.where(run_id: params[:run_id], project_id: @project.id) - render_ok(data: results.as_json(only: %i[id run_id job_name job_show_type job_result])) + render_ok(run_results: results.as_json(only: %i[id run_id job_name job_show_type job_result])) end def show