@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<?php
2
3abstract class DiffusionPreCommitRefHeraldField extends HeraldField {
4
5 public function supportsObject($object) {
6 if (!($object instanceof PhabricatorRepositoryPushLog)) {
7 return false;
8 }
9
10 if (!$this->getAdapter()->isPreCommitRefAdapter()) {
11 return false;
12 }
13
14 return true;
15 }
16
17 public function getFieldGroupKey() {
18 return DiffusionPreCommitRefHeraldFieldGroup::FIELDGROUPKEY;
19 }
20
21}