Commit 5885d242 authored by charlie ablett's avatar charlie ablett Committed by Alper Akgun

Add issue link into issue due notification email

- plus a test.
parent 451c3197
%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
......
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) %>
......
---
title: Add issue link to due date emails
merge_request: 50642
author:
type: changed
......@@ -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'
......
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