Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94014986
DifferentialHeraldStateReasons.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 3, 06:37
Size
814 B
Mime Type
text/x-php
Expires
Thu, Dec 5, 06:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22711206
Attached To
rPH Phabricator
DifferentialHeraldStateReasons.php
View Options
<?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
);
}
}
Event Timeline
Log In to Comment