diff --git a/phab-comment.php b/phab-comment.php index 02f55cc..ae75e1b 100755 --- a/phab-comment.php +++ b/phab-comment.php @@ -1,57 +1,52 @@ #!/usr/bin/php $argv[1], 'transactions' => [ [ 'type' => 'comment', 'value' => $message, - ] + ], ], ]; $client = new ConduitClient('https://gitpull.it/'); $client->setConduitToken(PHABRICATOR_API_TOKEN); -try { - $result = $client->callMethodSynchronous('differential.revision.edit', $api_parameters); - //print_r($result); -} catch( Exception $e ) { - print_r( $api_parameters ); - echo "ERROR COMMENTING: " . $e->getMessage() . "\n"; -} +$result = $client->callMethodSynchronous('differential.revision.edit', $api_parameters); +//print_r($result);