Improve 'auto fsck' admin emails
This commit is contained in:
parent
d7a4a2fe75
commit
fdf6ca6c01
4 changed files with 8 additions and 2 deletions
|
@ -8,7 +8,7 @@ class RepositoryCheckMailer < BaseMailer
|
||||||
|
|
||||||
mail(
|
mail(
|
||||||
to: User.admins.pluck(:email),
|
to: User.admins.pluck(:email),
|
||||||
subject: @message
|
subject: "GitLab Admin | #{@message}"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,3 +3,6 @@
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= link_to "See the affected projects in the GitLab admin panel", admin_namespaces_projects_url(last_repository_check_failed: 1)
|
= link_to "See the affected projects in the GitLab admin panel", admin_namespaces_projects_url(last_repository_check_failed: 1)
|
||||||
|
|
||||||
|
%p
|
||||||
|
You are receiving this message because you are a GitLab administrator for #{Gitlab.config.gitlab.url}.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
#{@message}.
|
#{@message}.
|
||||||
\
|
\
|
||||||
View details: #{admin_namespaces_projects_url(last_repository_check_failed: 1)}
|
View details: #{admin_namespaces_projects_url(last_repository_check_failed: 1)}
|
||||||
|
|
||||||
|
You are receiving this message because you are a GitLab administrator
|
||||||
|
for #{Gitlab.config.gitlab.url}.
|
||||||
|
|
|
@ -15,7 +15,7 @@ describe RepositoryCheckMailer do
|
||||||
it 'mentions the number of failed checks' do
|
it 'mentions the number of failed checks' do
|
||||||
mail = described_class.notify(3)
|
mail = described_class.notify(3)
|
||||||
|
|
||||||
expect(mail).to have_subject '3 projects failed their last repository check'
|
expect(mail).to have_subject 'GitLab Admin | 3 projects failed their last repository check'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue