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:
Diffstat (limited to 'app/mailers/emails/imports.rb')
-rw-r--r--app/mailers/emails/imports.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/mailers/emails/imports.rb b/app/mailers/emails/imports.rb
new file mode 100644
index 00000000000..d3e8b90d686
--- /dev/null
+++ b/app/mailers/emails/imports.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+module Emails
+ module Imports
+ def github_gists_import_errors_email(user_id, errors)
+ @errors = errors
+ user = User.find(user_id)
+
+ email_with_layout(
+ to: user.notification_email_or_default,
+ subject: subject(s_('GithubImporter|GitHub Gists import finished with errors'))
+ )
+ end
+ end
+end