BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fdf6ca6c
Commit
fdf6ca6c
authored
Apr 18, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve 'auto fsck' admin emails
parent
d7a4a2fe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
repository_check_mailer.rb
app/mailers/repository_check_mailer.rb
+1
-1
notify.html.haml
app/views/repository_check_mailer/notify.html.haml
+3
-0
notify.text.haml
app/views/repository_check_mailer/notify.text.haml
+3
-0
repository_check_mailer_spec.rb
spec/mailers/repository_check_mailer_spec.rb
+1
-1
No files found.
app/mailers/repository_check_mailer.rb
View file @
fdf6ca6c
...
...
@@ -8,7 +8,7 @@ class RepositoryCheckMailer < BaseMailer
mail
(
to:
User
.
admins
.
pluck
(
:email
),
subject:
@message
subject:
"GitLab Admin |
#{
@message
}
"
)
end
end
app/views/repository_check_mailer/notify.html.haml
View file @
fdf6ca6c
...
...
@@ -3,3 +3,6 @@
%p
=
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
}
.
app/views/repository_check_mailer/notify.text.haml
View file @
fdf6ca6c
#{
@message
}
.
\
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
}
.
spec/mailers/repository_check_mailer_spec.rb
View file @
fdf6ca6c
...
...
@@ -15,7 +15,7 @@ describe RepositoryCheckMailer do
it
'mentions the number of failed checks'
do
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment