diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2016-12-15 19:48:00 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2016-12-15 19:48:00 +0000 |
commit | f3c2855f8e2c5cffe5548ff95dbeec6fe56446f0 (patch) | |
tree | aab2c008633ca80f1e3b7e6836c5d146dd8ba514 /lib | |
parent | 4530e68c6f9f05350a2aff5332eddae25b27537a (diff) | |
parent | d9000184e5e8a63e0c24fe264e864fc27f6515c4 (diff) | |
download | gitlab-ce-f3c2855f8e2c5cffe5548ff95dbeec6fe56446f0.tar.gz |
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')
-rw-r--r-- | lib/gitlab/badge/build/status.rb | 4 |
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 |