Browse Source

fixed run_results

pull/347/head
xxq250 1 year ago
parent
commit
96254f0cc4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/v1/projects/pipelines_controller.rb

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

@@ -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


Loading…
Cancel
Save