summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/commit_status.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index ab13db4b297..bb74ff2c5f6 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -90,4 +90,12 @@ class CommitStatus < ActiveRecord::Base
def stuck?
false
end
+
+ ##
+ # Deprecated, this should be removed in 9.0 in favor of exposing
+ # entire pipeline in API.
+ #
+ def commit
+ pipeline.try(:commit_data)
+ end
end