From ec970763e996b6a302cd7361c48d461d5622e7a0 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Thu, 16 Mar 2017 00:44:31 +0000 Subject: Adds pipeline mini-graph to system information box in Commit View --- app/models/commit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/commit.rb') 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 ||= {} -- cgit v1.2.1