diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/job_artifact.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb index 3beb76ffc2b..16fa77e0048 100644 --- a/app/models/ci/job_artifact.rb +++ b/app/models/ci/job_artifact.rb @@ -66,6 +66,10 @@ module Ci where(file_type: types) end + scope :with_all_reports, -> do + where(file_type: self.file_types.values.drop(3)) + end + scope :test_reports, -> do with_file_types(TEST_REPORT_FILE_TYPES) end |