Commit f463ef5e authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 7cced600
...@@ -21,8 +21,7 @@ module Gitlab ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment