Page MenuHomePhorge

DifferentialHeraldStateReasons.php
No OneTemporary

Size
814 B
Referenced Files
None
Subscribers
None

DifferentialHeraldStateReasons.php

<?php
final class DifferentialHeraldStateReasons
extends HeraldStateReasons {
const REASON_DRAFT = 'differential.draft';
const REASON_UNCHANGED = 'differential.unchanged';
const REASON_LANDED = 'differential.landed';
public function explainReason($reason) {
$reasons = array(
self::REASON_DRAFT => pht(
'This revision is still an unsubmitted draft, so mail will not '.
'be sent yet.'),
self::REASON_UNCHANGED => pht(
'The update which triggered Herald did not update the diff for '.
'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);
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 10:51 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
125243
Default Alt Text
DifferentialHeraldStateReasons.php (814 B)

Event Timeline