Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1212
testparse.php
Active
Public
Actions
Authored by
epriestley
on Jul 23 2014, 9:47 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F180436: testparse.php
Jul 23 2014, 9:47 PM
2014-07-23 21:47:53 (UTC+0)
Subscribers
None
<?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'
),
));
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Jul 23 2014, 9:47 PM
2014-07-23 21:47:53 (UTC+0)
epriestley
changed the title of this paste from untitled to
testparse.php
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment