Specify 3 cases we want them to be excluded. [ci skip]
This commit is contained in:
parent
8dfec32d2b
commit
23e0a3ee7d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue