diff --git a/phab-comment.php b/phab-comment.php index c8bf16c..831c3c4 100755 --- a/phab-comment.php +++ b/phab-comment.php @@ -1,46 +1,48 @@ #!/usr/bin/php $argv[1], 'transactions' => [ [ 'type' => 'comment', - 'value' => sprintf( - "{icon cog spin} Be bop be bop. I'm a bot. Builded:\n\n→ [[%1\$s|%2\$s]]", - - $argv[2], - $filename - ), + '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"; }