Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
85543b99
Commit
85543b99
authored
May 22, 2020
by
charlieablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update email to include issue link
parent
b16db272
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
app/views/notify/new_issue_email.html.haml
app/views/notify/new_issue_email.html.haml
+1
-1
changelogs/unreleased/cablett-email-link.yml
changelogs/unreleased/cablett-email-link.yml
+5
-0
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+5
-1
No files found.
app/views/notify/new_issue_email.html.haml
View file @
85543b99
%p
.details
#{
link_to
@issue
.
author_name
,
user_url
(
@issue
.
author
)
}
created an issue:
#{
link_to
@issue
.
author_name
,
user_url
(
@issue
.
author
)
}
created an issue
#{
link_to
@issue
.
to_reference
(
full:
false
),
issue_url
(
@issue
)
}
:
-
if
@issue
.
assignees
.
any?
%p
...
...
changelogs/unreleased/cablett-email-link.yml
0 → 100644
View file @
85543b99
---
title
:
Add new issue link to email notification header
merge_request
:
32833
author
:
type
:
changed
spec/mailers/notify_spec.rb
View file @
85543b99
...
...
@@ -104,7 +104,11 @@ describe Notify do
it
'contains a link to issue author'
do
is_expected
.
to
have_body_text
(
issue
.
author_name
)
is_expected
.
to
have_body_text
'created an issue:'
is_expected
.
to
have_body_text
'created an issue'
end
it
'contains a link to the issue'
do
is_expected
.
to
have_body_text
(
issue
.
to_reference
(
full:
false
))
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