@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
3final class HeraldPreCommitRefAdapter extends HeraldPreCommitAdapter {
4
5 public function getAdapterContentName() {
6 return pht('Commit Hook: Branches/Tags/Bookmarks');
7 }
8
9 public function getAdapterSortOrder() {
10 return 2000;
11 }
12
13 public function getAdapterContentDescription() {
14 return pht(
15 "React to branches and tags being pushed to hosted repositories.\n".
16 "Hook rules can block changes and send push summary mail.");
17 }
18
19 public function isPreCommitRefAdapter() {
20 return true;
21 }
22
23 public function getHeraldName() {
24 return pht('Push Log (Ref)');
25 }
26
27}