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
5885d242
Commit
5885d242
authored
Dec 29, 2020
by
charlie ablett
Committed by
Alper Akgun
Dec 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add issue link into issue due notification email
- plus a test.
parent
451c3197
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
app/views/notify/issue_due_email.html.haml
app/views/notify/issue_due_email.html.haml
+1
-1
app/views/notify/issue_due_email.text.erb
app/views/notify/issue_due_email.text.erb
+1
-1
changelogs/unreleased/cablett-issue-due.yml
changelogs/unreleased/cablett-issue-due.yml
+5
-0
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+4
-0
No files found.
app/views/notify/issue_due_email.html.haml
View file @
5885d242
%p
.details
#{
link_to
@issue
.
author_name
,
user_url
(
@issue
.
author
)
}
's issue is due soon.
#{
link_to
@issue
.
author_name
,
user_url
(
@issue
.
author
)
}
's issue
#{
issue_reference_link
(
@issue
)
}
is due soon.
-
if
@issue
.
assignees
.
any?
%p
...
...
app/views/notify/issue_due_email.text.erb
View file @
5885d242
The following issue is due on
<%=
@issue
.
due_date
%>
:
Issue
<%=
@issue
.
iid
%>
:
<%=
url_for
(
project_issue_url
(
@issue
.
project
,
@issue
)
)
%>
Issue
<%=
@issue
.
iid
%>
:
<%=
issue_reference_link
(
@issue
)
%>
Author:
<%=
@issue
.
author_name
%>
<%=
assignees_label
(
@issue
)
%>
...
...
changelogs/unreleased/cablett-issue-due.yml
0 → 100644
View file @
5885d242
---
title
:
Add issue link to due date emails
merge_request
:
50642
author
:
type
:
changed
spec/mailers/notify_spec.rb
View file @
5885d242
...
...
@@ -224,6 +224,10 @@ RSpec.describe Notify do
let
(
:model
)
{
issue
}
end
it
'contains a link to the issue'
do
is_expected
.
to
have_body_text
(
issue
.
to_reference
(
full:
false
))
end
it_behaves_like
'it should show Gmail Actions View Issue link'
it_behaves_like
'an unsubscribeable thread'
it_behaves_like
'appearance header and footer enabled'
...
...
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