@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 28 lines 859 B view raw
1<?php 2 3final class HarbormasterQueryBuildsSearchEngineAttachment 4 extends PhabricatorSearchEngineAttachment { 5 6 public function getAttachmentName() { 7 return pht('Harbormaster Query Builds'); 8 } 9 10 public function getAttachmentDescription() { 11 return pht( 12 'This attachment exists solely to provide compatibility with the '. 13 'message format returned by an outdated API method. It will be '. 14 'taken away at some point and you should not rely on these fields '. 15 'being available.'); 16 } 17 18 public function getAttachmentForObject($object, $data, $spec) { 19 $status_name = HarbormasterBuildStatus::getBuildStatusName( 20 $object->getBuildStatus()); 21 return array( 22 'uri' => PhabricatorEnv::getProductionURI($object->getURI()), 23 'name' => $object->getName(), 24 'buildStatusName' => $status_name, 25 ); 26 } 27 28}