Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-01 21:09:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-01 21:09:55 +0300
commit4316e6895a9038cc21eeef847578e2918d5b5595 (patch)
tree738650d5359ff5c19f4f0b28468f23956ec4ca54 /app/models/integrations
parent7b197a72aac71c97cf234401a585aba58841ed64 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/integrations')
-rw-r--r--app/models/integrations/harbor.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/integrations/harbor.rb b/app/models/integrations/harbor.rb
index 03913a71d47..58eabcfd378 100644
--- a/app/models/integrations/harbor.rb
+++ b/app/models/integrations/harbor.rb
@@ -24,6 +24,10 @@ module Integrations
s_("HarborIntegration|After the Harbor integration is activated, global variables '$HARBOR_USERNAME', '$HARBOR_HOST', '$HARBOR_OCI', '$HARBOR_PASSWORD', '$HARBOR_URL' and '$HARBOR_PROJECT' will be created for CI/CD use.")
end
+ def hostname
+ Gitlab::Utils.parse_url(url).hostname
+ end
+
class << self
def to_param
name.demodulize.downcase