Commit 23e0a3ee authored by Lin Jen-Shin's avatar Lin Jen-Shin

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

parent 8dfec32d
...@@ -29,6 +29,7 @@ class CommitStatus < ActiveRecord::Base ...@@ -29,6 +29,7 @@ class CommitStatus < ActiveRecord::Base
end end
scope :exclude_ignored, -> do scope :exclude_ignored, -> do
quoted_when = connection.quote_column_name('when') quoted_when = connection.quote_column_name('when')
# We want to ignore failed_but_allowed jobs
where("allow_failure = ? OR status NOT IN (?)", where("allow_failure = ? OR status NOT IN (?)",
false, [:failed, :canceled]). false, [:failed, :canceled]).
# We want to ignore skipped manual jobs # We want to ignore skipped manual jobs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment