summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb4
-rw-r--r--app/models/commit_status.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 88c46076df6..0f4c498c266 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -100,6 +100,10 @@ module Ci
end
end
+ def detailed_status
+ Gitlab::Ci::Status::Build::Factory.new(self).fabricate!
+ end
+
def manual?
self.when == 'manual'
end
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index cf90475f4d4..fce16174e22 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -131,4 +131,8 @@ class CommitStatus < ActiveRecord::Base
def has_trace?
false
end
+
+ def detailed_status
+ Gitlab::Ci::Status::Factory.new(self).fabricate!
+ end
end