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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-12-06 23:43:58 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-12-06 23:43:58 +0300
commitc3bbad762d418857e3f5b52222f5eedd62663229 (patch)
treec5b7083396734b3d13883a7316e223a73135a441 /app/mailers/emails/projects.rb
parent60011bc42e3d820344e804f70d170c0c8b25d7e9 (diff)
parent9395d198f9b9ec59858d2f316e58cda22ab80050 (diff)
Merge branch '19376-post-bfg-cleanup' into 'master'
Allow internal references to be removed Closes #19376 See merge request gitlab-org/gitlab-ce!23189
Diffstat (limited to 'app/mailers/emails/projects.rb')
-rw-r--r--app/mailers/emails/projects.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index d7e6c2ba7b2..2500622caa7 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -24,6 +24,21 @@ module Emails
subject: subject("Project export error"))
end
+ def repository_cleanup_success_email(project, user)
+ @project = project
+ @user = user
+
+ mail(to: user.notification_email, subject: subject("Project cleanup has completed"))
+ end
+
+ def repository_cleanup_failure_email(project, user, error)
+ @project = project
+ @user = user
+ @error = error
+
+ mail(to: user.notification_email, subject: subject("Project cleanup failure"))
+ end
+
def repository_push_email(project_id, opts = {})
@message =
Gitlab::Email::Message::RepositoryPush.new(self, project_id, opts)