Specify 3 cases we want them to be excluded. [ci skip]

This commit is contained in:
Lin Jen-Shin 2016-10-03 18:25:18 +08:00
parent 8dfec32d2b
commit 23e0a3ee7d

View file

@ -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