3 final class PhabricatorRepositoryDescriptionTransaction
4 extends PhabricatorRepositoryTransactionType
{
6 const TRANSACTIONTYPE
= 'repo:description';
8 public function generateOldValue($object) {
9 return $object->getDetail('description');
12 public function applyInternalEffects($object, $value) {
13 $object->setDetail('description', $value);
16 public function getTitle() {
18 '%s updated the description for this repository.',
19 $this->renderAuthor());
22 public function hasChangeDetailView() {
26 public function getMailDiffSectionHeader() {
27 return pht('CHANGES TO REPOSITORY DESCRIPTION');
30 public function newChangeDetailView() {
31 $viewer = $this->getViewer();
33 return id(new PhabricatorApplicationTransactionTextDiffDetailView())
35 ->setOldText($this->getOldValue())
36 ->setNewText($this->getNewValue());
39 public function newRemarkupChanges() {
42 $changes[] = $this->newRemarkupChange()
43 ->setOldValue($this->getOldValue())
44 ->setNewValue($this->getNewValue());