summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-20 00:09:58 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-20 00:09:58 +0800
commita49151f0d186e5abd45b5d0bb2ed4947a55858a2 (patch)
tree1a4e2576f964af346f62929bef94313909a6471e /lib
parentf8496a33b33fb266eb43d3926432d6349bf1086a (diff)
parent1f127006085eb61c6f5381d196ad156d15ff470d (diff)
downloadgitlab-ce-a49151f0d186e5abd45b5d0bb2ed4947a55858a2.tar.gz
Merge remote-tracking branch 'upstream/master' into wall-clock-time-for-showing-pipeline
* upstream/master: (50 commits) Increased vertical alignment of labels for issues in lists Changed file name Updated spec HAML Changed tests to use JS tests Addressed feedback Made logic simpler by moving away from underscorejs Added tooltip to label value in collapsed sidebar Add play icon SVG Have hover color of builds span full width Fix alignment of icon on commits page Change sleep to wait_for_ajax Added tests Destroy branch delete tooltip when row is removed Move and improvement comment in pipeline fixtures Fix notification_service argument error of declined invitation emails Update contribution acceptance criteria with tests requirements Fixed keyboard shortcuts not working on issue boards Hides tooltip when dragging Fixes issue with cursor not changing when dragging Hides tooltips when dragging issues Add a spec testing a second side effect of `Repository#merge`. drop execute bit ...
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/badge/coverage/report.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/badge/coverage/report.rb b/lib/gitlab/badge/coverage/report.rb
index 3d56ea3e47a..95d925dc7f3 100644
--- a/lib/gitlab/badge/coverage/report.rb
+++ b/lib/gitlab/badge/coverage/report.rb
@@ -13,8 +13,7 @@ module Gitlab
@job = job
@pipeline = @project.pipelines
- .where(ref: @ref)
- .where(sha: @project.commit(@ref).try(:sha))
+ .latest_successful_for(@ref)
.first
end