GitHub PullRequestReviewCommentEvent at 2014-01-18 09:05:28
Repository: gush
Actor: cordoval
Payload: {"comment":{"url":"https://api.github.com/repos/cordoval/gush/pulls/comments/8987006","id":8987006,"diff_hunk":"@@ -0,0 +1,55 @@\n+<?php\n+\n+namespace Gush\\Event;\n+\n+use Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\n+use Symfony\\Component\\Console\\ConsoleEvents;\n+use Symfony\\Component\\Console\\Input\\InputOption;\n+use Symfony\\Component\\Console\\Event\\ConsoleEvent;\n+\n+class TableSubscriber implements EventSubscriberInterface\n+{\n+    protected $validLayouts = array(\n+        'default',\n+        'compact',\n+        'borderless',\n+    );\n+\n+    public static function getSubscribedEvents()\n+    {\n+        return array(\n+            GushEvents::DECORATE_DEFINITION => 'decorateDefinition',\n+            GushEvents::INITIALIZE => 'initialize',\n+        );\n+    }\n+\n+    public function decorateDefinition(CommandEvent $event)\n+    {\n+        $command = $event->getCommand();\n+        $command->addOption('table-layout', null, InputOption::VALUE_REQUIRED,","path":"src/Gush/Event/TableSubscriber.php","position":29,"original_position":29,"commit_id":"b5e6acdc48b33c8cfa03e73d8eddbc9720e73f47","original_commit_id":"b5e6acdc48b33c8cfa03e73d8eddbc9720e73f47","user":{"login":"cordoval","id":328359,"avatar_url":"https://gravatar.com/avatar/ab2a6b877dd41427c660a3d6a170cc71?d=https%3A%2F%2Fidenticons.github.com%2Fbaab6a6fd290d8efddc3f5e0fa0fdcf1.png&r=x","gravatar_id":"ab2a6b877dd41427c660a3d6a170cc71","url":"https://api.github.com/users/cordoval","html_url":"https://github.com/cordoval","followers_url":"https://api.github.com/users/cordoval/followers","following_url":"https://api.github.com/users/cordoval/following{/other_user}","gists_url":"https://api.github.com/users/cordoval/gists{/gist_id}","starred_url":"https://api.github.com/users/cordoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cordoval/subscriptions","organizations_url":"https://api.github.com/users/cordoval/orgs","repos_url":"https://api.github.com/users/cordoval/repos","events_url":"https://api.github.com/users/cordoval/events{/privacy}","received_events_url":"https://api.github.com/users/cordoval/received_events","type":"User","site_admin":false},"body":"the option is required here, so not sure if this is a good idea, if we make it required ok but let's pass a default option no?","created_at":"2014-01-18T09:05:28Z","updated_at":"2014-01-18T09:05:28Z","html_url":"https://github.com/cordoval/gush/pull/118#discussion_r8987006","pull_request_url":"https://api.github.com/repos/cordoval/gush/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/cordoval/gush/pulls/comments/8987006"},"html":{"href":"https://github.com/cordoval/gush/pull/118#discussion_r8987006"},"pull_request":{"href":"https://api.github.com/repos/cordoval/gush/pulls/118"}}}}