summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-07 16:34:28 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-07 16:34:28 +0200
commit8323ab8a5b4ea14a63d6b8e7b99588eab690ef1a (patch)
treeb790fec0b450ae28920e6fdca89f78f91cc5ec0d /app/models/commit.rb
parentaec1d18468fa8c6ee5c431a53c3288e6c1d10daa (diff)
downloadgitlab-ci-8323ab8a5b4ea14a63d6b8e7b99588eab690ef1a.tar.gz
Improve build page with tabs for parallel builds
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 3532035..3d005b1 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -164,4 +164,8 @@ class Commit < ActiveRecord::Base
builds.first.coverage
end
end
+
+ def matrix?
+ builds_without_retry.size > 1
+ end
end