Also use latest_status, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20058857
This commit is contained in:
parent
7cced60069
commit
f463ef5ec5
1 changed files with 1 additions and 2 deletions
|
@ -21,8 +21,7 @@ module Gitlab
|
||||||
def status
|
def status
|
||||||
@project.pipelines
|
@project.pipelines
|
||||||
.where(sha: @sha)
|
.where(sha: @sha)
|
||||||
.latest(@ref)
|
.latest_status(@ref) || 'unknown'
|
||||||
.status || 'unknown'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def metadata
|
def metadata
|
||||||
|
|
Loading…
Reference in a new issue