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
|
||||
@project.pipelines
|
||||
.where(sha: @sha)
|
||||
.latest(@ref)
|
||||
.status || 'unknown'
|
||||
.latest_status(@ref) || 'unknown'
|
||||
end
|
||||
|
||||
def metadata
|
||||
|
|
Loading…
Reference in a new issue