Deprecate legacy CI/CD status helpers

This commit is contained in:
Grzegorz Bizon 2017-04-21 22:17:50 +02:00
parent ec586042e0
commit 3e96b6ff7f
1 changed files with 7 additions and 1 deletions

View File

@ -1,10 +1,16 @@
##
# DEPRECATED
#
# These helpers are deprecated in favor of detailed CI/CD statuses.
#
# See 'detailed_status?` method and `Gitlab::Ci::Status` module.
#
module CiStatusHelper
def ci_status_path(pipeline)
project = pipeline.project
namespace_project_pipeline_path(project.namespace, project, pipeline)
end
# Is used by Commit and Merge Request Widget
def ci_label_for_status(status)
if detailed_status?(status)
return status.label