3 final class PhabricatorCommitRepositoryField
4 extends PhabricatorCommitCustomField
{
6 public function getFieldKey() {
7 return 'diffusion:repository';
10 public function getFieldName() {
11 return pht('Repository');
14 public function getFieldDescription() {
15 return pht('Shows repository in email.');
18 public function shouldDisableByDefault() {
22 public function shouldAppearInTransactionMail() {
26 public function updateTransactionMailBody(
27 PhabricatorMetaMTAMailBody
$body,
28 PhabricatorApplicationTransactionEditor
$editor,
31 $repository = $this->getObject()->getRepository();
33 $body->addTextSection(
35 $repository->getMonogram().' '.$repository->getName());