diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-04 15:09:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-04 15:09:39 +0300 |
commit | 8322f051740fba113c5c1f6fba96b9c943240746 (patch) | |
tree | bc695dfd5538f9378041f4a4fa6bd097ecf58954 /app/services/notification_service.rb | |
parent | f9fe7cda4bdbc477d8d76e5def4023f7d03bab46 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 993b1c7a928..4ff462191fe 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -504,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) |