Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96346821
ReleephCommitMessageFieldSpecification.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
Wed, Dec 25, 16:49
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Dec 27, 16:49 (1 d, 12 h)
Engine
blob
Format
Raw Data
Handle
23152198
Attached To
rPH Phabricator
ReleephCommitMessageFieldSpecification.php
View Options
<?php
final
class
ReleephCommitMessageFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getName
()
{
return
'__only_for_commit_message!'
;
}
public
function
shouldAppearOnCommitMessage
()
{
return
true
;
}
public
function
renderLabelForCommitMessage
()
{
return
$this
->
renderCommonLabel
();
}
public
function
renderValueForCommitMessage
()
{
return
$this
->
renderCommonValue
(
DifferentialReleephRequestFieldSpecification
::
ACTION_PICKS
);
}
public
function
shouldAppearOnRevertMessage
()
{
return
true
;
}
public
function
renderLabelForRevertMessage
()
{
return
$this
->
renderCommonLabel
();
}
public
function
renderValueForRevertMessage
()
{
return
$this
->
renderCommonValue
(
DifferentialReleephRequestFieldSpecification
::
ACTION_REVERTS
);
}
private
function
renderCommonLabel
()
{
return
id
(
new
DifferentialReleephRequestFieldSpecification
())
->
renderLabelForCommitMessage
();
}
private
function
renderCommonValue
(
$action
)
{
$rq
=
'RQ'
.
$this
->
getReleephRequest
()->
getID
();
return
"{$action} {$rq}"
;
}
}
Event Timeline
Log In to Comment