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/commit_status.rb')
-rw-r--r--app/models/commit_status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 2470eada62e..64e585bae14 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -71,6 +71,7 @@ class CommitStatus < Ci::ApplicationRecord
scope :scheduled_at_before, ->(date) {
where('ci_builds.scheduled_at IS NOT NULL AND ci_builds.scheduled_at < ?', date)
}
+ scope :with_when_executed, ->(when_executed) { where(when: when_executed) }
# The scope applies `pluck` to split the queries. Use with care.
scope :for_project_paths, -> (paths) do