Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F180436
testparse.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Jul 23 2014, 9:47 PM
2014-07-23 21:47:52 (UTC+0)
Size
728 B
Referenced Files
None
Subscribers
None
testparse.php
View Options
<?php
require_once
'scripts/__init_script__.php'
;
$callsign
=
$argv
[
1
];
$hash
=
$argv
[
2
];
$viewer
=
PhabricatorUser
::
getOmnipotentUser
();
$repository
=
id
(
new
PhabricatorRepositoryQuery
())
->
setViewer
(
$viewer
)
->
withCallsigns
(
array
(
$callsign
))
->
executeOne
();
$ref
=
id
(
new
DiffusionLowLevelCommitQuery
())
->
setRepository
(
$repository
)
->
withIdentifier
(
$hash
)
->
execute
();
$params
=
array
(
'corpus'
=>
$ref
->
getMessage
(),
'partial'
=>
true
,
);
$result
=
id
(
new
ConduitCall
(
'differential.parsecommitmessage'
,
$params
))
->
setUser
(
PhabricatorUser
::
getOmnipotentUser
())
->
execute
();
var_dump
(
array
(
'ref'
=>
$ref
,
'result'
=>
$result
,
'uri'
=>
PhabricatorEnv
::
getProductionURI
(
'/xyz'
),
));
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/th/hx/mmu5x3sbqrbnz7nq
Default Alt Text
testparse.php (728 B)
Attached To
Mode
P1212 testparse.php
Attached
Detach File
Event Timeline
Log In to Comment