diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-12-12 05:21:44 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-12-12 05:21:44 +0100 |
commit | 8c5c4f6d0b4746bee34150f5d4ab20586eccf197 (patch) | |
tree | ad767fec17735ed2d839101045ff5f1691b7afd6 /extensions | |
parent | be917fc275079930abed04507159fb0cc719012c (diff) | |
download | bugzilla-8c5c4f6d0b4746bee34150f5d4ab20586eccf197.tar.gz bugzilla-8c5c4f6d0b4746bee34150f5d4ab20586eccf197.tar.xz |
Bug 948991 - Congratulations on having your first patch approved mail should mention which patch it refers to
r=glob
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/ContributorEngagement/Extension.pm | 6 | ||||
-rw-r--r-- | extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/extensions/ContributorEngagement/Extension.pm b/extensions/ContributorEngagement/Extension.pm index 64fcb9273..0e86eb4ca 100644 --- a/extensions/ContributorEngagement/Extension.pm +++ b/extensions/ContributorEngagement/Extension.pm @@ -105,9 +105,9 @@ sub _send_mail { my ($attachment, $timestamp) = @_; my $vars = { - date => format_time($timestamp, '%a, %d %b %Y %T %z', 'UTC'), - to_user => $attachment->attacher->email, - from_user => EMAIL_FROM, + date => format_time($timestamp, '%a, %d %b %Y %T %z', 'UTC'), + attachment => $attachment, + from_user => EMAIL_FROM, }; my $msg; diff --git a/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl b/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl index d4601542d..915ebd912 100644 --- a/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl +++ b/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl @@ -7,7 +7,7 @@ #%] [% PROCESS "global/variables.none.tmpl" %] From: [% from_user FILTER none %] -To: [% to_user FILTER none %] +To: [% attachment.attacher.email FILTER none %] Subject: Congratulations on having your first patch approved Date: [% date FILTER none %] X-Bugzilla-Type: contributor-engagement @@ -15,6 +15,8 @@ X-Bugzilla-Type: contributor-engagement Congratulations on having your first patch approved, and thank you for your contribution to Mozilla. +[%+ urlbase %]attachment.cgi?id=[% attachment.id FILTER uri %]&action=edit + The next step is to get the patch actually checked in to our repository. For more information about how to make that happen, check out this post: |