{"action":"created","comment":{"url":"https://api.github.com/repos/mrSerious/We-Connect/pulls/comments/176130691","pull_request_review_id":105780174,"id":176130691,"diff_hunk":"@@ -39,14 +39,23 @@ class ReviewsController {\n    * @returns {res} HTTP status code with a message.\n    */\n   create(req, res) {\n-    const newReview = req.body;\n-\n-    if (!newReview) {\n-      return res.sendStatus(500);\n+    let newReview;\n+    const nextId = this.reviews.length + 1;\n+    const { content } = req.body;\n+    const { businessId } = nextId + 1;\n+    if (!content) {\n+      return res.status(400)\n+        .send('Review should have a content');\n     }\n \n+    newReview = {\n+      id: nextId,\n+      content: content,","path":"server/controllers/reviews.js","position":54,"original_position":54,"commit_id":"fcd29ef8cead7e01212fd2b2357a02c29c2e34e4","original_commit_id":"fcd29ef8cead7e01212fd2b2357a02c29c2e34e4","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected property shorthand                           object-shorthand","created_at":"2018-03-21T15:42:39Z","updated_at":"2018-03-21T15:42:40Z","html_url":"https://github.com/mrSerious/We-Connect/pull/6#discussion_r176130691","pull_request_url":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mrSerious/We-Connect/pulls/comments/176130691"},"html":{"href":"https://github.com/mrSerious/We-Connect/pull/6#discussion_r176130691"},"pull_request":{"href":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6","id":176518486,"html_url":"https://github.com/mrSerious/We-Connect/pull/6","diff_url":"https://github.com/mrSerious/We-Connect/pull/6.diff","patch_url":"https://github.com/mrSerious/We-Connect/pull/6.patch","issue_url":"https://api.github.com/repos/mrSerious/We-Connect/issues/6","number":6,"state":"open","locked":false,"title":"Apply feedback","user":{"login":"mrSerious","id":15168965,"avatar_url":"https://avatars2.githubusercontent.com/u/15168965?v=4","gravatar_id":"","url":"https://api.github.com/users/mrSerious","html_url":"https://github.com/mrSerious","followers_url":"https://api.github.com/users/mrSerious/followers","following_url":"https://api.github.com/users/mrSerious/following{/other_user}","gists_url":"https://api.github.com/users/mrSerious/gists{/gist_id}","starred_url":"https://api.github.com/users/mrSerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrSerious/subscriptions","organizations_url":"https://api.github.com/users/mrSerious/orgs","repos_url":"https://api.github.com/users/mrSerious/repos","events_url":"https://api.github.com/users/mrSerious/events{/privacy}","received_events_url":"https://api.github.com/users/mrSerious/received_events","type":"User","site_admin":false},"body":"A second try to merge this branch.","created_at":"2018-03-21T15:42:31Z","updated_at":"2018-03-21T15:42:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54a2fab3b88ab6f194ae2230cce01d63a1db0ae5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6/commits","review_comments_url":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6/comments","review_comment_url":"https://api.github.com/repos/mrSerious/We-Connect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrSerious/We-Connect/issues/6/comments","statuses_url":"https://api.github.com/repos/mrSerious/We-Connect/statuses/fcd29ef8cead7e01212fd2b2357a02c29c2e34e4","head":{"label":"mrSerious:apply-feedback","ref":"apply-feedback","sha":"fcd29ef8cead7e01212fd2b2357a02c29c2e34e4","user":{"login":"mrSerious","id":15168965,"avatar_url":"https://avatars2.githubusercontent.com/u/15168965?v=4","gravatar_id":"","url":"https://api.github.com/users/mrSerious","html_url":"https://github.com/mrSerious","followers_url":"https://api.github.com/users/mrSerious/followers","following_url":"https://api.github.com/users/mrSerious/following{/other_user}","gists_url":"https://api.github.com/users/mrSerious/gists{/gist_id}","starred_url":"https://api.github.com/users/mrSerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrSerious/subscriptions","organizations_url":"https://api.github.com/users/mrSerious/orgs","repos_url":"https://api.github.com/users/mrSerious/repos","events_url":"https://api.github.com/users/mrSerious/events{/privacy}","received_events_url":"https://api.github.com/users/mrSerious/received_events","type":"User","site_admin":false},"repo":{"id":123084151,"name":"We-Connect","full_name":"mrSerious/We-Connect","owner":{"login":"mrSerious","id":15168965,"avatar_url":"https://avatars2.githubusercontent.com/u/15168965?v=4","gravatar_id":"","url":"https://api.github.com/users/mrSerious","html_url":"https://github.com/mrSerious","followers_url":"https://api.github.com/users/mrSerious/followers","following_url":"https://api.github.com/users/mrSerious/following{/other_user}","gists_url":"https://api.github.com/users/mrSerious/gists{/gist_id}","starred_url":"https://api.github.com/users/mrSerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrSerious/subscriptions","organizations_url":"https://api.github.com/users/mrSerious/orgs","repos_url":"https://api.github.com/users/mrSerious/repos","events_url":"https://api.github.com/users/mrSerious/events{/privacy}","received_events_url":"https://api.github.com/users/mrSerious/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrSerious/We-Connect","description":"This is an application that brings businesses and individuals together.","fork":false,"url":"https://api.github.com/repos/mrSerious/We-Connect","forks_url":"https://api.github.com/repos/mrSerious/We-Connect/forks","keys_url":"https://api.github.com/repos/mrSerious/We-Connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrSerious/We-Connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrSerious/We-Connect/teams","hooks_url":"https://api.github.com/repos/mrSerious/We-Connect/hooks","issue_events_url":"https://api.github.com/repos/mrSerious/We-Connect/issues/events{/number}","events_url":"https://api.github.com/repos/mrSerious/We-Connect/events","assignees_url":"https://api.github.com/repos/mrSerious/We-Connect/assignees{/user}","branches_url":"https://api.github.com/repos/mrSerious/We-Connect/branches{/branch}","tags_url":"https://api.github.com/repos/mrSerious/We-Connect/tags","blobs_url":"https://api.github.com/repos/mrSerious/We-Connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrSerious/We-Connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrSerious/We-Connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrSerious/We-Connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrSerious/We-Connect/statuses/{sha}","languages_url":"https://api.github.com/repos/mrSerious/We-Connect/languages","stargazers_url":"https://api.github.com/repos/mrSerious/We-Connect/stargazers","contributors_url":"https://api.github.com/repos/mrSerious/We-Connect/contributors","subscribers_url":"https://api.github.com/repos/mrSerious/We-Connect/subscribers","subscription_url":"https://api.github.com/repos/mrSerious/We-Connect/subscription","commits_url":"https://api.github.com/repos/mrSerious/We-Connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrSerious/We-Connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrSerious/We-Connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrSerious/We-Connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrSerious/We-Connect/contents/{+path}","compare_url":"https://api.github.com/repos/mrSerious/We-Connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrSerious/We-Connect/merges","archive_url":"https://api.github.com/repos/mrSerious/We-Connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrSerious/We-Connect/downloads","issues_url":"https://api.github.com/repos/mrSerious/We-Connect/issues{/number}","pulls_url":"https://api.github.com/repos/mrSerious/We-Connect/pulls{/number}","milestones_url":"https://api.github.com/repos/mrSerious/We-Connect/milestones{/number}","notifications_url":"https://api.github.com/repos/mrSerious/We-Connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrSerious/We-Connect/labels{/name}","releases_url":"https://api.github.com/repos/mrSerious/We-Connect/releases{/id}","deployments_url":"https://api.github.com/repos/mrSerious/We-Connect/deployments","created_at":"2018-02-27T06:31:48Z","updated_at":"2018-03-21T06:48:20Z","pushed_at":"2018-03-21T15:42:32Z","git_url":"git://github.com/mrSerious/We-Connect.git","ssh_url":"git@github.com:mrSerious/We-Connect.git","clone_url":"https://github.com/mrSerious/We-Connect.git","svn_url":"https://github.com/mrSerious/We-Connect","homepage":"","size":20025,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mrSerious:master","ref":"master","sha":"9a21d25f2e7dc133fce9e02736fc9d25d471f1b2","user":{"login":"mrSerious","id":15168965,"avatar_url":"https://avatars2.githubusercontent.com/u/15168965?v=4","gravatar_id":"","url":"https://api.github.com/users/mrSerious","html_url":"https://github.com/mrSerious","followers_url":"https://api.github.com/users/mrSerious/followers","following_url":"https://api.github.com/users/mrSerious/following{/other_user}","gists_url":"https://api.github.com/users/mrSerious/gists{/gist_id}","starred_url":"https://api.github.com/users/mrSerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrSerious/subscriptions","organizations_url":"https://api.github.com/users/mrSerious/orgs","repos_url":"https://api.github.com/users/mrSerious/repos","events_url":"https://api.github.com/users/mrSerious/events{/privacy}","received_events_url":"https://api.github.com/users/mrSerious/received_events","type":"User","site_admin":false},"repo":{"id":123084151,"name":"We-Connect","full_name":"mrSerious/We-Connect","owner":{"login":"mrSerious","id":15168965,"avatar_url":"https://avatars2.githubusercontent.com/u/15168965?v=4","gravatar_id":"","url":"https://api.github.com/users/mrSerious","html_url":"https://github.com/mrSerious","followers_url":"https://api.github.com/users/mrSerious/followers","following_url":"https://api.github.com/users/mrSerious/following{/other_user}","gists_url":"https://api.github.com/users/mrSerious/gists{/gist_id}","starred_url":"https://api.github.com/users/mrSerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrSerious/subscriptions","organizations_url":"https://api.github.com/users/mrSerious/orgs","repos_url":"https://api.github.com/users/mrSerious/repos","events_url":"https://api.github.com/users/mrSerious/events{/privacy}","received_events_url":"https://api.github.com/users/mrSerious/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrSerious/We-Connect","description":"This is an application that brings businesses and individuals together.","fork":false,"url":"https://api.github.com/repos/mrSerious/We-Connect","forks_url":"https://api.github.com/repos/mrSerious/We-Connect/forks","keys_url":"https://api.github.com/repos/mrSerious/We-Connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrSerious/We-Connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrSerious/We-Connect/teams","hooks_url":"https://api.github.com/repos/mrSerious/We-Connect/hooks","issue_events_url":"https://api.github.com/repos/mrSerious/We-Connect/issues/events{/number}","events_url":"https://api.github.com/repos/mrSerious/We-Connect/events","assignees_url":"https://api.github.com/repos/mrSerious/We-Connect/assignees{/user}","branches_url":"https://api.github.com/repos/mrSerious/We-Connect/branches{/branch}","tags_url":"https://api.github.com/repos/mrSerious/We-Connect/tags","blobs_url":"https://api.github.com/repos/mrSerious/We-Connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrSerious/We-Connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrSerious/We-Connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrSerious/We-Connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrSerious/We-Connect/statuses/{sha}","languages_url":"https://api.github.com/repos/mrSerious/We-Connect/languages","stargazers_url":"https://api.github.com/repos/mrSerious/We-Connect/stargazers","contributors_url":"https://api.github.com/repos/mrSerious/We-Connect/contributors","subscribers_url":"https://api.github.com/repos/mrSerious/We-Connect/subscribers","subscription_url":"https://api.github.com/repos/mrSerious/We-Connect/subscription","commits_url":"https://api.github.com/repos/mrSerious/We-Connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrSerious/We-Connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrSerious/We-Connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrSerious/We-Connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrSerious/We-Connect/contents/{+path}","compare_url":"https://api.github.com/repos/mrSerious/We-Connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrSerious/We-Connect/merges","archive_url":"https://api.github.com/repos/mrSerious/We-Connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrSerious/We-Connect/downloads","issues_url":"https://api.github.com/repos/mrSerious/We-Connect/issues{/number}","pulls_url":"https://api.github.com/repos/mrSerious/We-Connect/pulls{/number}","milestones_url":"https://api.github.com/repos/mrSerious/We-Connect/milestones{/number}","notifications_url":"https://api.github.com/repos/mrSerious/We-Connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrSerious/We-Connect/labels{/name}","releases_url":"https://api.github.com/repos/mrSerious/We-Connect/releases{/id}","deployments_url":"https://api.github.com/repos/mrSerious/We-Connect/deployments","created_at":"2018-02-27T06:31:48Z","updated_at":"2018-03-21T06:48:20Z","pushed_at":"2018-03-21T15:42:32Z","git_url":"git://github.com/mrSerious/We-Connect.git","ssh_url":"git@github.com:mrSerious/We-Connect.git","clone_url":"https://github.com/mrSerious/We-Connect.git","svn_url":"https://github.com/mrSerious/We-Connect","homepage":"","size":20025,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6"},"html":{"href":"https://github.com/mrSerious/We-Connect/pull/6"},"issue":{"href":"https://api.github.com/repos/mrSerious/We-Connect/issues/6"},"comments":{"href":"https://api.github.com/repos/mrSerious/We-Connect/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/mrSerious/We-Connect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrSerious/We-Connect/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/mrSerious/We-Connect/statuses/fcd29ef8cead7e01212fd2b2357a02c29c2e34e4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}