Differential D13000 Diff 31348 src/applications/repository/customfield/PhabricatorCommitTagsField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/customfield/PhabricatorCommitTagsField.php
<?php | <?php | ||||
final class PhabricatorCommitTagsField | final class PhabricatorCommitTagsField | ||||
extends PhabricatorCommitCustomField { | extends PhabricatorCommitCustomField { | ||||
public function getFieldKey() { | public function getFieldKey() { | ||||
return 'diffusion:tags'; | return 'diffusion:tags'; | ||||
} | } | ||||
public function shouldAppearInApplicationTransactions() { | public function shouldAppearInTransactionMail() { | ||||
return true; | return true; | ||||
} | } | ||||
public function buildApplicationTransactionMailBody( | public function updateTransactionMailBody( | ||||
PhabricatorApplicationTransaction $xaction, | PhabricatorMetaMTAMailBody $body, | ||||
PhabricatorMetaMTAMailBody $body) { | PhabricatorApplicationTransactionEditor $editor, | ||||
array $xactions) { | |||||
$params = array( | $params = array( | ||||
'commit' => $this->getObject()->getCommitIdentifier(), | 'commit' => $this->getObject()->getCommitIdentifier(), | ||||
'callsign' => $this->getObject()->getRepository()->getCallsign(), | 'callsign' => $this->getObject()->getRepository()->getCallsign(), | ||||
); | ); | ||||
$tags_raw = id(new ConduitCall('diffusion.tagsquery', $params)) | $tags_raw = id(new ConduitCall('diffusion.tagsquery', $params)) | ||||
->setUser($this->getViewer()) | ->setUser($this->getViewer()) | ||||
Show All 13 Lines |