BigW Consortium Gitlab

Commit 66301ce2 by Lin Jen-Shin

Filter against status first, otherwise we can't

find the latest successful one if the last one is failed and we already exclude the others.
parent dd6b16a1
......@@ -105,7 +105,7 @@ module Ci
end
def self.latest_successful_for(ref)
latest_for(ref).success.first
success.latest_for(ref).first
end
def self.truncate_sha(sha)
......
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