summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-10-03 18:25:18 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-10-03 18:25:18 +0800
commit23e0a3ee7d3e050c6c6beb8fafa178779e7e4fc8 (patch)
tree3f34ed18e82e7d55b6cec683f13815c5995dd7e0 /app
parent8dfec32d2bac661313f62b338b6d991b3fa25b98 (diff)
downloadgitlab-ce-23e0a3ee7d3e050c6c6beb8fafa178779e7e4fc8.tar.gz
Specify 3 cases we want them to be excluded. [ci skip]
Diffstat (limited to 'app')
-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 710c8364554..0cf8d32453e 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -29,6 +29,7 @@ class CommitStatus < ActiveRecord::Base
end
scope :exclude_ignored, -> do
quoted_when = connection.quote_column_name('when')
+ # We want to ignore failed_but_allowed jobs
where("allow_failure = ? OR status NOT IN (?)",
false, [:failed, :canceled]).
# We want to ignore skipped manual jobs