mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Add latest changes from gitlab-org/security/gitlab@17-0-stable-ee
This commit is contained in:
@ -250,7 +250,9 @@ module API
|
||||
get ':id/pipelines/:pipeline_id/test_report', feature_category: :code_testing, urgency: :low do
|
||||
authorize! :read_build, pipeline
|
||||
|
||||
present pipeline.test_reports, with: TestReportEntity, details: true
|
||||
cache_action_if(pipeline.has_test_reports?, [user_project, pipeline], expires_in: 2.minutes) do
|
||||
present pipeline.test_reports, with: TestReportEntity, details: true
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Gets the test report summary for a given pipeline' do
|
||||
|
Reference in New Issue
Block a user