Differential D8657 Diff 20543 src/applications/differential/customfield/DifferentialSummaryField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialSummaryField.php
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | final class DifferentialSummaryField | ||||
| public function shouldAppearInCommitMessageTemplate() { | public function shouldAppearInCommitMessageTemplate() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldOverwriteWhenCommitMessageIsEdited() { | public function shouldOverwriteWhenCommitMessageIsEdited() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldAppearInTransactionMail() { | |||||
| return true; | |||||
| } | |||||
| public function updateTransactionMailBody( | |||||
| PhabricatorMetaMTAMailBody $body, | |||||
| PhabricatorApplicationTransactionEditor $editor, | |||||
| array $xactions) { | |||||
| if (!$editor->getIsNewObject()) { | |||||
| return; | |||||
| } | |||||
| $summary = $this->getValue(); | |||||
| if (!strlen(trim($summary))) { | |||||
| return; | |||||
| } | |||||
| $body->addTextSection(pht('REVISION SUMMARY'), $summary); | |||||
| } | |||||
| } | } | ||||