From 5c723d8572dc3060773b50324b5c0f18d97f4124 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Wed, 17 Oct 2018 18:44:52 +0900 Subject: Add external_url_formatted --- lib/gitlab/ci/status/deployment/common.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/gitlab/ci/status/deployment/common.rb b/lib/gitlab/ci/status/deployment/common.rb index 64bb7c4e032..10d9de000bc 100644 --- a/lib/gitlab/ci/status/deployment/common.rb +++ b/lib/gitlab/ci/status/deployment/common.rb @@ -25,7 +25,11 @@ module Gitlab end def external_url - subject.environment.external_url + environment.external_url + end + + def external_url_formatted + environment.formatted_external_url end def stop_url @@ -64,6 +68,10 @@ module Gitlab def deployable subject.deployable end + + def has_deployment? + true + end end end end -- cgit v1.2.1