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>2020-12-17 14:59:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-17 14:59:07 +0300
commit8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch)
tree544930fb309b30317ae9797a9683768705d664c4 /app/services/notification_service.rb
parent4b1de649d0168371549608993deac953eb692019 (diff)
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 85113d3ca22..4ff462191fe 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -353,7 +353,7 @@ class NotificationService
issue = note.noteable
support_bot = User.support_bot
- return unless issue.service_desk_reply_to.present?
+ return unless issue.external_author.present?
return unless issue.project.service_desk_enabled?
return if note.author == support_bot
return unless issue.subscribed?(support_bot, issue.project)
@@ -380,6 +380,10 @@ class NotificationService
end
end
+ def user_admin_rejection(name, email)
+ mailer.user_admin_rejection_email(name, email).deliver_later
+ end
+
# Members
def new_access_request(member)
return true unless member.notifiable?(:subscription)
@@ -500,6 +504,16 @@ class NotificationService
end
end
+ def issue_cloned(issue, new_issue, current_user)
+ recipients = NotificationRecipients::BuildService.build_recipients(issue, current_user, action: 'cloned')
+
+ recipients.map do |recipient|
+ email = mailer.issue_cloned_email(recipient.user, issue, new_issue, current_user, recipient.reason)
+ email.deliver_later
+ email
+ end
+ end
+
def project_exported(project, current_user)
return true unless notifiable?(current_user, :mention, project: project)