@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 ManiphestCustomFieldStatusParser
4 extends PhabricatorCustomFieldMonogramParser {
5
6 protected function getPrefixes() {
7 return array_keys(ManiphestTaskStatus::getStatusPrefixMap());
8 }
9
10 protected function getInfixes() {
11 return array(
12 'task',
13 'tasks',
14 'issue',
15 'issues',
16 'bug',
17 'bugs',
18 );
19 }
20
21 protected function getSuffixes() {
22 return array_keys(ManiphestTaskStatus::getStatusSuffixMap());
23 }
24
25 protected function getMonogramPattern() {
26 return '[tT]\d+';
27 }
28
29}