diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-16 00:44:31 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-03-16 00:44:31 +0000 |
commit | ec970763e996b6a302cd7361c48d461d5622e7a0 (patch) | |
tree | 3a225fc02e093efbb5c6d48908c9dcf43acd52fe /app/models | |
parent | acb1b3eec1ac1859b08de4ecbed3f494e1ca50e8 (diff) | |
download | gitlab-ce-ec970763e996b6a302cd7361c48d461d5622e7a0.tar.gz |
Adds pipeline mini-graph to system information box in Commit View
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 0a18986ef26..6ea5b1ae51f 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -231,6 +231,10 @@ class Commit project.pipelines.where(sha: sha) end + def latest_pipeline + pipelines.last + end + def status(ref = nil) @statuses ||= {} |