mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-22 19:49:02 +01:00
Make new EditEngine Audit transactions apply old mail tags
Summary: Ref T10978. Until T10448 makes mail tags modular, keep the old tags working. Test Plan: Made some commit edits, ran `bin/phd debug task` to process mail for them. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10978 Differential Revision: https://secure.phabricator.com/D17190
This commit is contained in:
parent
b941331bdf
commit
69d6374646
1 changed files with 12 additions and 0 deletions
|
@ -438,6 +438,18 @@ final class PhabricatorAuditTransaction
|
|||
public function getMailTags() {
|
||||
$tags = array();
|
||||
switch ($this->getTransactionType()) {
|
||||
case DiffusionCommitAcceptTransaction::TRANSACTIONTYPE:
|
||||
$tags[] = self::MAILTAG_ACTION_ACCEPT;
|
||||
break;
|
||||
case DiffusionCommitConcernTransaction::TRANSACTIONTYPE:
|
||||
$tags[] = self::MAILTAG_ACTION_CONCERN;
|
||||
break;
|
||||
case DiffusionCommitResignTransaction::TRANSACTIONTYPE:
|
||||
$tags[] = self::MAILTAG_ACTION_RESIGN;
|
||||
break;
|
||||
case DiffusionCommitAuditorsTransaction::TRANSACTIONTYPE:
|
||||
$tags[] = self::MAILTAG_ADD_AUDITORS;
|
||||
break;
|
||||
case PhabricatorAuditActionConstants::ACTION:
|
||||
switch ($this->getNewValue()) {
|
||||
case PhabricatorAuditActionConstants::CONCERN:
|
||||
|
|
Loading…
Add table
Reference in a new issue