diff --git a/lib/api/v3/builds.rb b/lib/api/v3/builds.rb index a256a5720e1..7bf7329625c 100644 --- a/lib/api/v3/builds.rb +++ b/lib/api/v3/builds.rb @@ -35,7 +35,9 @@ module API get ':id/builds' do builds = user_project.builds.order('id DESC') builds = filter_builds(builds, params[:scope]) - present paginate(builds.includes(:job_artifacts_archive)), with: ::API::V3::Entities::Build + + builds = builds.includes(:user, :job_artifacts_archive, :runner, pipeline: :project) + present paginate(builds), with: ::API::V3::Entities::Build end desc 'Get builds for a specific commit of a project' do