Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/differential/herald/DifferentialHeraldStateReasons.php
12256 views
1
<?php
2
3
final class DifferentialHeraldStateReasons
4
extends HeraldStateReasons {
5
6
const REASON_DRAFT = 'differential.draft';
7
const REASON_UNCHANGED = 'differential.unchanged';
8
const REASON_LANDED = 'differential.landed';
9
10
public function explainReason($reason) {
11
$reasons = array(
12
self::REASON_DRAFT => pht(
13
'This revision is still an unsubmitted draft, so mail will not '.
14
'be sent yet.'),
15
self::REASON_UNCHANGED => pht(
16
'The update which triggered Herald did not update the diff for '.
17
'this revision, so builds will not run.'),
18
self::REASON_LANDED => pht(
19
'The update which triggered Herald was an automatic update in '.
20
'response to discovering a commit, so builds will not run.'),
21
);
22
23
return idx($reasons, $reason);
24
}
25
26
}
27
28