Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2016-12-15 22:48:00 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2016-12-15 22:48:00 +0300
commitf3c2855f8e2c5cffe5548ff95dbeec6fe56446f0 (patch)
treeaab2c008633ca80f1e3b7e6836c5d146dd8ba514 /lib/gitlab
parent4530e68c6f9f05350a2aff5332eddae25b27537a (diff)
parentd9000184e5e8a63e0c24fe264e864fc27f6515c4 (diff)
Merge branch 'show-commit-status-from-latest-pipeline' into 'master'
Show commit status from latest pipeline Show commit status from latest pipeline rather than compound status from all pipelines. Closes #20560 See merge request !7333
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/badge/build/status.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/badge/build/status.rb b/lib/gitlab/badge/build/status.rb
index 50aa45e5406..b762d85b6e5 100644
--- a/lib/gitlab/badge/build/status.rb
+++ b/lib/gitlab/badge/build/status.rb
@@ -20,8 +20,8 @@ module Gitlab
def status
@project.pipelines
- .where(sha: @sha, ref: @ref)
- .status || 'unknown'
+ .where(sha: @sha)
+ .latest_status(@ref) || 'unknown'
end
def metadata