@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 PhabricatorAuditConfigOptions
4 extends PhabricatorApplicationConfigOptions {
5
6 public function getName() {
7 return pht('Audit');
8 }
9
10 public function getDescription() {
11 return pht('Audit configuration.');
12 }
13
14 public function getIcon() {
15 return 'fa-check-circle-o';
16 }
17
18 public function getGroup() {
19 return 'apps';
20 }
21
22 public function getApplicationClassName() {
23 return PhabricatorAuditApplication::class;
24 }
25
26 public function getOptions() {
27 return array(
28 $this->newOption(
29 'audit.can-author-close-audit',
30 'bool',
31 false)
32 ->setBoolOptions(
33 array(
34 pht('Enable Self-Accept'),
35 pht('Disable Self-Accept'),
36 ))
37 ->setDescription(
38 pht(
39 'Allows the author of a commit to be an auditor and accept their '.
40 'own commits. Note that this behavior is different from the '.
41 'behavior implied by the name of the option: long ago, it did '.
42 'something else.')),
43 );
44 }
45
46}