Commit 85543b99 authored by charlieablett's avatar charlieablett

Update email to include issue link

parent b16db272
%p.details %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? - if @issue.assignees.any?
%p %p
......
---
title: Add new issue link to email notification header
merge_request: 32833
author:
type: changed
...@@ -104,7 +104,11 @@ describe Notify do ...@@ -104,7 +104,11 @@ describe Notify do
it 'contains a link to issue author' do it 'contains a link to issue author' do
is_expected.to have_body_text(issue.author_name) 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
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment