3 final class DiffusionCommitBranchesHeraldField
4 extends DiffusionCommitHeraldField
{
6 const FIELDCONST
= 'diffusion.commit.branches';
8 public function getHeraldFieldName() {
9 return pht('Branches');
12 public function getHeraldFieldValue($object) {
13 $viewer = $this->getAdapter()->getViewer();
16 $repository = $object->getRepository();
19 'repository' => $repository->getPHID(),
20 'contains' => $commit->getCommitIdentifier(),
23 $result = id(new ConduitCall('diffusion.branchquery', $params))
27 $refs = DiffusionRepositoryRef
::loadAllFromDictionaries($result);
29 return mpull($refs, 'getShortName');
32 protected function getHeraldFieldStandardType() {
33 return self
::STANDARD_TEXT_LIST
;