Revert "Merge emails state the author if it differs from the submitter"

This reverts commit bac338caed.

Reason for revert: Faulty logic.

$fromEmail is not typically the email of the person triggering the action.

Change-Id: Id9b6fcf8e067d6f1d6d13afa0e1f1290d0b7dc58
This commit is contained in:
Wyatt Allen
2018-02-23 01:03:36 +00:00
parent bac338caed
commit 985ace912e
2 changed files with 3 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
/** /**
* Copyright (C) 2016 The Android Open Source Project * Copyright (C) 2016 The Android Open Source Project
* *
@@ -21,16 +22,10 @@
* a change successfully merged to the head. * a change successfully merged to the head.
* @param change * @param change
* @param email * @param email
* @param fromEmail
* @param fromName * @param fromName
* @param patchSetInfo
*/ */
{template .Merged kind="text"} {template .Merged kind="text"}
{$fromName} merged this change {$fromName} has submitted this change and it was merged.
{if $patchSetInfo.authorEmail != $fromEmail}
{sp}by {$patchSetInfo.authorName}
{/if}.
{if $email.changeUrl} ( {$email.changeUrl} ){/if}{\n} {if $email.changeUrl} ( {$email.changeUrl} ){/if}{\n}
{\n} {\n}
Change subject: {$change.subject}{\n} Change subject: {$change.subject}{\n}

View File

@@ -19,16 +19,11 @@
/** /**
* @param diffLines * @param diffLines
* @param email * @param email
* @param fromEmail
* @param fromName * @param fromName
* @param patchSetInfo
*/ */
{template .MergedHtml} {template .MergedHtml}
<p> <p>
{$fromName} <strong>merged</strong> this change {$fromName} <strong>merged</strong> this change.
{if $patchSetInfo.authorEmail != $fromEmail}
{sp}by {$patchSetInfo.authorName}
{/if}.
</p> </p>
{if $email.changeUrl} {if $email.changeUrl}