Commit 732ba967 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

add "Service Desk" and the from address to the issue title

parent 849622d8
......@@ -43,7 +43,7 @@ module Gitlab
@issue = Issues::CreateService.new(
project,
User.support_bot,
title: mail.subject,
title: issue_title
description: message,
confidential: true,
service_desk_reply_to: from_address,
......@@ -59,6 +59,10 @@ module Gitlab
def from_address
(mail.reply_to || []).first || mail.sender || mail.from.first
end
def issue_title
"Service Desk (from `#{from_address}`): #{mail.subject}"
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