Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/pipeline_artifact.rb')
-rw-r--r--app/models/ci/pipeline_artifact.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/ci/pipeline_artifact.rb b/app/models/ci/pipeline_artifact.rb
index 9dfe4252e95..889c5d094a7 100644
--- a/app/models/ci/pipeline_artifact.rb
+++ b/app/models/ci/pipeline_artifact.rb
@@ -40,6 +40,8 @@ module Ci
code_quality_mr_diff: 2
}
+ scope :unlocked, -> { joins(:pipeline).merge(::Ci::Pipeline.unlocked) }
+
class << self
def report_exists?(file_type)
return false unless REPORT_TYPES.key?(file_type)
@@ -58,4 +60,4 @@ module Ci
end
end
-Ci::PipelineArtifact.prepend_ee_mod
+Ci::PipelineArtifact.prepend_mod