Differential D18745 Diff 44997 src/applications/differential/herald/DifferentialHeraldStateReasons.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/herald/DifferentialHeraldStateReasons.php
| <?php | <?php | ||||
| final class DifferentialHeraldStateReasons | final class DifferentialHeraldStateReasons | ||||
| extends HeraldStateReasons { | extends HeraldStateReasons { | ||||
| const REASON_DRAFT = 'differential.draft'; | const REASON_DRAFT = 'differential.draft'; | ||||
| const REASON_UNCHANGED = 'differential.unchanged'; | const REASON_UNCHANGED = 'differential.unchanged'; | ||||
| const REASON_LANDED = 'differential.landed'; | |||||
| public function explainReason($reason) { | public function explainReason($reason) { | ||||
| $reasons = array( | $reasons = array( | ||||
| self::REASON_DRAFT => pht( | self::REASON_DRAFT => pht( | ||||
| 'This revision is still an unsubmitted draft, so mail will not '. | 'This revision is still an unsubmitted draft, so mail will not '. | ||||
| 'be sent yet.'), | 'be sent yet.'), | ||||
| self::REASON_UNCHANGED => pht( | self::REASON_UNCHANGED => pht( | ||||
| 'The update which triggered Herald did not update the diff for '. | 'The update which triggered Herald did not update the diff for '. | ||||
| 'this revision, so builds will not run.'), | 'this revision, so builds will not run.'), | ||||
| self::REASON_LANDED => pht( | |||||
| 'The update which triggered Herald was an automatic update in '. | |||||
| 'response to discovering a commit, so builds will not run.'), | |||||
| ); | ); | ||||
| return idx($reasons, $reason); | return idx($reasons, $reason); | ||||
| } | } | ||||
| } | } | ||||