Deprecate legacy CI/CD status helpers
This commit is contained in:
parent
ec586042e0
commit
3e96b6ff7f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue