{"action":"created","comment":{"url":"https://api.github.com/repos/andela/suyabay/pulls/comments/55654876","id":55654876,"diff_hunk":"@@ -24,19 +24,40 @@ protected function create(array $data)\n     }\n \n     /**\n-    * Process comment creation\n-    */\n+     * Process comment creation\n+     */\n     public function postComment(Request $request)\n     {\n         $newComment = $this->create($request->all());\n-\n         return [\n-                'message' => 'Comment created Successfully',\n-                'status_code' => 200,\n-                'commentId' => $newComment->id\n+            'message' => 'Comment created Successfully',\n+            'status_code' => 200,\n+            'commentId' => $newComment->id\n             ];\n     }\n \n+\t/**\n+\t * Get 10 comments from current episode\n+\t */\n+\tpublic function fetchComment(Request $request)\n+\t{\n+\t\t$totalComments = $request->input('offset');\n+\t\t$episodeId     = $request->input('episode_id');\n+\n+\t\t$oldComments = DB::table('comments')\n+\t\t\t->where('id', '>', $totalComments)\n+\t\t\t->where('episode_id',$episodeId)\n+            ->skip($totalComments)\n+\t\t\t->take(10)\n+             ->get();\n+\n+\t\treturn [\n+\t\t\t'message' => 'Comment retrieved Successfully',\n+\t\t\t'status_code' => 200,\n+\t\t\t'comments' => $oldComments","path":"app/Http/Controllers/CommentController.php","position":57,"original_position":57,"commit_id":"859f4cd138f837c835428518ed0d7126fa0aa2be","original_commit_id":"859f4cd138f837c835428518ed0d7126fa0aa2be","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars.githubusercontent.com/u/12626182?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Spaces must be used to indent lines; tabs are not allowed","created_at":"2016-03-10T09:43:51Z","updated_at":"2016-03-10T09:43:51Z","html_url":"https://github.com/andela/suyabay/pull/201#discussion_r55654876","pull_request_url":"https://api.github.com/repos/andela/suyabay/pulls/201","_links":{"self":{"href":"https://api.github.com/repos/andela/suyabay/pulls/comments/55654876"},"html":{"href":"https://github.com/andela/suyabay/pull/201#discussion_r55654876"},"pull_request":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201"}}},"pull_request":{"url":"https://api.github.com/repos/andela/suyabay/pulls/201","id":62362713,"html_url":"https://github.com/andela/suyabay/pull/201","diff_url":"https://github.com/andela/suyabay/pull/201.diff","patch_url":"https://github.com/andela/suyabay/pull/201.patch","issue_url":"https://api.github.com/repos/andela/suyabay/issues/201","number":201,"state":"open","locked":false,"title":"Chore/new favourite layout","user":{"login":"andela-tolotin","id":14159435,"avatar_url":"https://avatars.githubusercontent.com/u/14159435?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tolotin","html_url":"https://github.com/andela-tolotin","followers_url":"https://api.github.com/users/andela-tolotin/followers","following_url":"https://api.github.com/users/andela-tolotin/following{/other_user}","gists_url":"https://api.github.com/users/andela-tolotin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tolotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tolotin/subscriptions","organizations_url":"https://api.github.com/users/andela-tolotin/orgs","repos_url":"https://api.github.com/users/andela-tolotin/repos","events_url":"https://api.github.com/users/andela-tolotin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tolotin/received_events","type":"User","site_admin":false},"body":"This pull request solves the following issues;\r\n\r\n1. The navigation sidebar on the channel page has dead links.\r\n2. The favourite page was using an old layout.\r\n3. Episodes without comments prints error messages  on the page.","created_at":"2016-03-10T09:43:38Z","updated_at":"2016-03-10T09:43:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cacff084c09c11769a2355ade371698c469aa2d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/suyabay/pulls/201/commits","review_comments_url":"https://api.github.com/repos/andela/suyabay/pulls/201/comments","review_comment_url":"https://api.github.com/repos/andela/suyabay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/suyabay/issues/201/comments","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/859f4cd138f837c835428518ed0d7126fa0aa2be","head":{"label":"andela:chore/new-favourite-layout","ref":"chore/new-favourite-layout","sha":"859f4cd138f837c835428518ed0d7126fa0aa2be","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":41855319,"name":"suyabay","full_name":"andela/suyabay","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/suyabay","description":"Awesome Podcast FM Network for Suya Lovers","fork":false,"url":"https://api.github.com/repos/andela/suyabay","forks_url":"https://api.github.com/repos/andela/suyabay/forks","keys_url":"https://api.github.com/repos/andela/suyabay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/suyabay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/suyabay/teams","hooks_url":"https://api.github.com/repos/andela/suyabay/hooks","issue_events_url":"https://api.github.com/repos/andela/suyabay/issues/events{/number}","events_url":"https://api.github.com/repos/andela/suyabay/events","assignees_url":"https://api.github.com/repos/andela/suyabay/assignees{/user}","branches_url":"https://api.github.com/repos/andela/suyabay/branches{/branch}","tags_url":"https://api.github.com/repos/andela/suyabay/tags","blobs_url":"https://api.github.com/repos/andela/suyabay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/suyabay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/suyabay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/suyabay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/suyabay/languages","stargazers_url":"https://api.github.com/repos/andela/suyabay/stargazers","contributors_url":"https://api.github.com/repos/andela/suyabay/contributors","subscribers_url":"https://api.github.com/repos/andela/suyabay/subscribers","subscription_url":"https://api.github.com/repos/andela/suyabay/subscription","commits_url":"https://api.github.com/repos/andela/suyabay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/suyabay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/suyabay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/suyabay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/suyabay/contents/{+path}","compare_url":"https://api.github.com/repos/andela/suyabay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/suyabay/merges","archive_url":"https://api.github.com/repos/andela/suyabay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/suyabay/downloads","issues_url":"https://api.github.com/repos/andela/suyabay/issues{/number}","pulls_url":"https://api.github.com/repos/andela/suyabay/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/suyabay/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/suyabay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/suyabay/labels{/name}","releases_url":"https://api.github.com/repos/andela/suyabay/releases{/id}","deployments_url":"https://api.github.com/repos/andela/suyabay/deployments","created_at":"2015-09-03T11:00:56Z","updated_at":"2016-02-22T07:53:08Z","pushed_at":"2016-03-10T09:43:39Z","git_url":"git://github.com/andela/suyabay.git","ssh_url":"git@github.com:andela/suyabay.git","clone_url":"https://github.com/andela/suyabay.git","svn_url":"https://github.com/andela/suyabay","homepage":"https://suyabay-staging.herokuapp.com","size":33397,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":5,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"adb5417274bf0b61a35b7792ce3d61c27b8cbe67","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":41855319,"name":"suyabay","full_name":"andela/suyabay","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/suyabay","description":"Awesome Podcast FM Network for Suya Lovers","fork":false,"url":"https://api.github.com/repos/andela/suyabay","forks_url":"https://api.github.com/repos/andela/suyabay/forks","keys_url":"https://api.github.com/repos/andela/suyabay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/suyabay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/suyabay/teams","hooks_url":"https://api.github.com/repos/andela/suyabay/hooks","issue_events_url":"https://api.github.com/repos/andela/suyabay/issues/events{/number}","events_url":"https://api.github.com/repos/andela/suyabay/events","assignees_url":"https://api.github.com/repos/andela/suyabay/assignees{/user}","branches_url":"https://api.github.com/repos/andela/suyabay/branches{/branch}","tags_url":"https://api.github.com/repos/andela/suyabay/tags","blobs_url":"https://api.github.com/repos/andela/suyabay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/suyabay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/suyabay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/suyabay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/suyabay/languages","stargazers_url":"https://api.github.com/repos/andela/suyabay/stargazers","contributors_url":"https://api.github.com/repos/andela/suyabay/contributors","subscribers_url":"https://api.github.com/repos/andela/suyabay/subscribers","subscription_url":"https://api.github.com/repos/andela/suyabay/subscription","commits_url":"https://api.github.com/repos/andela/suyabay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/suyabay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/suyabay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/suyabay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/suyabay/contents/{+path}","compare_url":"https://api.github.com/repos/andela/suyabay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/suyabay/merges","archive_url":"https://api.github.com/repos/andela/suyabay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/suyabay/downloads","issues_url":"https://api.github.com/repos/andela/suyabay/issues{/number}","pulls_url":"https://api.github.com/repos/andela/suyabay/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/suyabay/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/suyabay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/suyabay/labels{/name}","releases_url":"https://api.github.com/repos/andela/suyabay/releases{/id}","deployments_url":"https://api.github.com/repos/andela/suyabay/deployments","created_at":"2015-09-03T11:00:56Z","updated_at":"2016-02-22T07:53:08Z","pushed_at":"2016-03-10T09:43:39Z","git_url":"git://github.com/andela/suyabay.git","ssh_url":"git@github.com:andela/suyabay.git","clone_url":"https://github.com/andela/suyabay.git","svn_url":"https://github.com/andela/suyabay","homepage":"https://suyabay-staging.herokuapp.com","size":33397,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":5,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201"},"html":{"href":"https://github.com/andela/suyabay/pull/201"},"issue":{"href":"https://api.github.com/repos/andela/suyabay/issues/201"},"comments":{"href":"https://api.github.com/repos/andela/suyabay/issues/201/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/suyabay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201/commits"},"statuses":{"href":"https://api.github.com/repos/andela/suyabay/statuses/859f4cd138f837c835428518ed0d7126fa0aa2be"}}}}