{"action":"created","comment":{"url":"https://api.github.com/repos/andela/metis-ah/pulls/comments/215851250","pull_request_review_id":153209006,"id":215851250,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTg1MTI1MA==","diff_hunk":"@@ -0,0 +1,88 @@\n+import chai from 'chai';\n+import chaiHttp from 'chai-http';\n+import app from '../server/app';\n+\n+chai.use(chaiHttp);\n+const { should } = chai;\n+should();\n+\n+let token;\n+\n+describe('Tests for Articles', () => {\n+  describe('Create comment tests', () => {\n+    before((done) => {\n+      chai\n+        .request(app)\n+        .post('/api/v1/users/auth/signup')\n+        .send({\n+          username: 'enjames',\n+          email: 'enjames@james.com',\n+          password: 'pasS1234',\n+        })\n+        .end((err, res) => {\n+          token = res.body.data.token;","path":"test/test.articles.js","position":23,"original_position":23,"commit_id":"3123696c6278e39176e900bd6e571301d82fdc6e","original_commit_id":"3123696c6278e39176e900bd6e571301d82fdc6e","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"Use object destructuring                    prefer-destructuring","created_at":"2018-09-07T05:42:06Z","updated_at":"2018-09-07T05:42:08Z","html_url":"https://github.com/andela/metis-ah/pull/12#discussion_r215851250","pull_request_url":"https://api.github.com/repos/andela/metis-ah/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/metis-ah/pulls/comments/215851250"},"html":{"href":"https://github.com/andela/metis-ah/pull/12#discussion_r215851250"},"pull_request":{"href":"https://api.github.com/repos/andela/metis-ah/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/andela/metis-ah/pulls/12","id":213821776,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzODIxNzc2","html_url":"https://github.com/andela/metis-ah/pull/12","diff_url":"https://github.com/andela/metis-ah/pull/12.diff","patch_url":"https://github.com/andela/metis-ah/pull/12.patch","issue_url":"https://api.github.com/repos/andela/metis-ah/issues/12","number":12,"state":"open","locked":false,"title":"#159987407 User can post comments","user":{"login":"jamesenejo","id":42326622,"node_id":"MDQ6VXNlcjQyMzI2NjIy","avatar_url":"https://avatars1.githubusercontent.com/u/42326622?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesenejo","html_url":"https://github.com/jamesenejo","followers_url":"https://api.github.com/users/jamesenejo/followers","following_url":"https://api.github.com/users/jamesenejo/following{/other_user}","gists_url":"https://api.github.com/users/jamesenejo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesenejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesenejo/subscriptions","organizations_url":"https://api.github.com/users/jamesenejo/orgs","repos_url":"https://api.github.com/users/jamesenejo/repos","events_url":"https://api.github.com/users/jamesenejo/events{/privacy}","received_events_url":"https://api.github.com/users/jamesenejo/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nAdds a commenting feature to the application\r\n\r\n#### Description of Task to be completed?\r\n- Have the commenting endpoint working\r\n  /api/v1/articles/:articleId\r\n\r\n#### How should this be manually tested?\r\n- After cloning the repo, cd into it and run 'npm start'\r\n- Using postman, you can test the endpoint\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#159987407 ","created_at":"2018-09-07T05:41:44Z","updated_at":"2018-09-07T05:42:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe9f4be0e923adc09cb0ccec3c9e1dcca6476385","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/metis-ah/pulls/12/commits","review_comments_url":"https://api.github.com/repos/andela/metis-ah/pulls/12/comments","review_comment_url":"https://api.github.com/repos/andela/metis-ah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/metis-ah/issues/12/comments","statuses_url":"https://api.github.com/repos/andela/metis-ah/statuses/3123696c6278e39176e900bd6e571301d82fdc6e","head":{"label":"andela:ft-user-can-comment-159987407","ref":"ft-user-can-comment-159987407","sha":"3123696c6278e39176e900bd6e571301d82fdc6e","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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":145832105,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU4MzIxMDU=","name":"metis-ah","full_name":"andela/metis-ah","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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/metis-ah","description":null,"fork":false,"url":"https://api.github.com/repos/andela/metis-ah","forks_url":"https://api.github.com/repos/andela/metis-ah/forks","keys_url":"https://api.github.com/repos/andela/metis-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/metis-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/metis-ah/teams","hooks_url":"https://api.github.com/repos/andela/metis-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/metis-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/metis-ah/events","assignees_url":"https://api.github.com/repos/andela/metis-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/metis-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/metis-ah/tags","blobs_url":"https://api.github.com/repos/andela/metis-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/metis-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/metis-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/metis-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/metis-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/metis-ah/languages","stargazers_url":"https://api.github.com/repos/andela/metis-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/metis-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/metis-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/metis-ah/subscription","commits_url":"https://api.github.com/repos/andela/metis-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/metis-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/metis-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/metis-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/metis-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/metis-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/metis-ah/merges","archive_url":"https://api.github.com/repos/andela/metis-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/metis-ah/downloads","issues_url":"https://api.github.com/repos/andela/metis-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/metis-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/metis-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/metis-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/metis-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/metis-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/metis-ah/deployments","created_at":"2018-08-23T09:33:02Z","updated_at":"2018-09-05T19:47:31Z","pushed_at":"2018-09-07T05:41:45Z","git_url":"git://github.com/andela/metis-ah.git","ssh_url":"git@github.com:andela/metis-ah.git","clone_url":"https://github.com/andela/metis-ah.git","svn_url":"https://github.com/andela/metis-ah","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"0511127897226d928fc3ca306e8340779b56a435","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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":145832105,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU4MzIxMDU=","name":"metis-ah","full_name":"andela/metis-ah","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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/metis-ah","description":null,"fork":false,"url":"https://api.github.com/repos/andela/metis-ah","forks_url":"https://api.github.com/repos/andela/metis-ah/forks","keys_url":"https://api.github.com/repos/andela/metis-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/metis-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/metis-ah/teams","hooks_url":"https://api.github.com/repos/andela/metis-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/metis-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/metis-ah/events","assignees_url":"https://api.github.com/repos/andela/metis-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/metis-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/metis-ah/tags","blobs_url":"https://api.github.com/repos/andela/metis-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/metis-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/metis-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/metis-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/metis-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/metis-ah/languages","stargazers_url":"https://api.github.com/repos/andela/metis-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/metis-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/metis-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/metis-ah/subscription","commits_url":"https://api.github.com/repos/andela/metis-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/metis-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/metis-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/metis-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/metis-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/metis-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/metis-ah/merges","archive_url":"https://api.github.com/repos/andela/metis-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/metis-ah/downloads","issues_url":"https://api.github.com/repos/andela/metis-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/metis-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/metis-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/metis-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/metis-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/metis-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/metis-ah/deployments","created_at":"2018-08-23T09:33:02Z","updated_at":"2018-09-05T19:47:31Z","pushed_at":"2018-09-07T05:41:45Z","git_url":"git://github.com/andela/metis-ah.git","ssh_url":"git@github.com:andela/metis-ah.git","clone_url":"https://github.com/andela/metis-ah.git","svn_url":"https://github.com/andela/metis-ah","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/metis-ah/pulls/12"},"html":{"href":"https://github.com/andela/metis-ah/pull/12"},"issue":{"href":"https://api.github.com/repos/andela/metis-ah/issues/12"},"comments":{"href":"https://api.github.com/repos/andela/metis-ah/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/metis-ah/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/metis-ah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/metis-ah/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/andela/metis-ah/statuses/3123696c6278e39176e900bd6e571301d82fdc6e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}