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
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-13 00:09:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-13 00:09:54 +0300
commit14245e7755fb19d2429aa6a85273097a6b2eb43f (patch)
tree75ec4975479646f8bc484fae8eab59e90f2620d5 /lib
parent5982b74e32546cda6aa4d3e4fa856b6ec4dad30d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/api/projects.rb2
-rw-r--r--lib/gitlab/service_desk_email.rb6
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index d24dab63bd9..abbdb11a3f7 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -448,7 +448,7 @@ module API
.execute.map { |lang| [lang.name, lang.share] }.to_h
end
- desc 'Remove a project'
+ desc 'Delete a project'
delete ":id" do
authorize! :remove_project, user_project
diff --git a/lib/gitlab/service_desk_email.rb b/lib/gitlab/service_desk_email.rb
index f8dba82cb40..52da10eff3e 100644
--- a/lib/gitlab/service_desk_email.rb
+++ b/lib/gitlab/service_desk_email.rb
@@ -17,6 +17,12 @@ module Gitlab
def config
Gitlab.config.service_desk_email
end
+
+ def address_for_key(key)
+ return if config.address.blank?
+
+ config.address.sub(Gitlab::IncomingEmail::WILDCARD_PLACEHOLDER, key)
+ end
end
end
end