{"action":"created","comment":{"url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/comments/141926176","pull_request_review_id":66221975,"id":141926176,"diff_hunk":"@@ -0,0 +1,39 @@\n+import koaRouter from 'koa-joi-router';\n+\n+import * as ctrlc from '../controllers/comment';\n+\n+import { isAuthenticated } from '../middleware/auth'\n+\n+const Joi = koaRouter.Joi;\n+const router = koaRouter();\n+router.prefix('/api/comments')\n+\n+const routes = [\n+  {\n+    method: 'post',\n+    path: '/:qno',\n+    handler: [ isAuthenticated, ctrlc.addcomment ],\n+    validate: {\n+      params: {\n+        qno: Joi.number()\n+      },\n+      type: 'form',\n+      body: {\n+        comment: Joi.string(),\n+      }\n+    }\n+  },\n+  {\n+    method: 'get',\n+    path: '/:qno/getall',","path":"src/routes/comment.js","position":28,"original_position":28,"commit_id":"253f258f68fe37caa131ab5bc2d3ced1200816c7","original_commit_id":"253f258f68fe37caa131ab5bc2d3ced1200816c7","user":{"login":"meghprkh","id":5979605,"avatar_url":"https://avatars3.githubusercontent.com/u/5979605?v=4","gravatar_id":"","url":"https://api.github.com/users/meghprkh","html_url":"https://github.com/meghprkh","followers_url":"https://api.github.com/users/meghprkh/followers","following_url":"https://api.github.com/users/meghprkh/following{/other_user}","gists_url":"https://api.github.com/users/meghprkh/gists{/gist_id}","starred_url":"https://api.github.com/users/meghprkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meghprkh/subscriptions","organizations_url":"https://api.github.com/users/meghprkh/orgs","repos_url":"https://api.github.com/users/meghprkh/repos","events_url":"https://api.github.com/users/meghprkh/events{/privacy}","received_events_url":"https://api.github.com/users/meghprkh/received_events","type":"User","site_admin":false},"body":"Dont put getall at the back. A GET request already implies that","created_at":"2017-09-29T17:42:59Z","updated_at":"2017-09-29T17:43:00Z","html_url":"https://github.com/felicity-iiith/contest-portal-backend/pull/28#discussion_r141926176","pull_request_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/comments/141926176"},"html":{"href":"https://github.com/felicity-iiith/contest-portal-backend/pull/28#discussion_r141926176"},"pull_request":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28","id":143852559,"html_url":"https://github.com/felicity-iiith/contest-portal-backend/pull/28","diff_url":"https://github.com/felicity-iiith/contest-portal-backend/pull/28.diff","patch_url":"https://github.com/felicity-iiith/contest-portal-backend/pull/28.patch","issue_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues/28","number":28,"state":"open","locked":false,"title":"Modularity ","user":{"login":"newbazz","id":25884863,"avatar_url":"https://avatars1.githubusercontent.com/u/25884863?v=4","gravatar_id":"","url":"https://api.github.com/users/newbazz","html_url":"https://github.com/newbazz","followers_url":"https://api.github.com/users/newbazz/followers","following_url":"https://api.github.com/users/newbazz/following{/other_user}","gists_url":"https://api.github.com/users/newbazz/gists{/gist_id}","starred_url":"https://api.github.com/users/newbazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newbazz/subscriptions","organizations_url":"https://api.github.com/users/newbazz/orgs","repos_url":"https://api.github.com/users/newbazz/repos","events_url":"https://api.github.com/users/newbazz/events{/privacy}","received_events_url":"https://api.github.com/users/newbazz/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-29T10:10:44Z","updated_at":"2017-09-29T17:43:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2ba638b330d57e9e244c079d553fb394b0447d4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28/commits","review_comments_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28/comments","review_comment_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues/28/comments","statuses_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/statuses/253f258f68fe37caa131ab5bc2d3ced1200816c7","head":{"label":"newbazz:modularity","ref":"modularity","sha":"253f258f68fe37caa131ab5bc2d3ced1200816c7","user":{"login":"newbazz","id":25884863,"avatar_url":"https://avatars1.githubusercontent.com/u/25884863?v=4","gravatar_id":"","url":"https://api.github.com/users/newbazz","html_url":"https://github.com/newbazz","followers_url":"https://api.github.com/users/newbazz/followers","following_url":"https://api.github.com/users/newbazz/following{/other_user}","gists_url":"https://api.github.com/users/newbazz/gists{/gist_id}","starred_url":"https://api.github.com/users/newbazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newbazz/subscriptions","organizations_url":"https://api.github.com/users/newbazz/orgs","repos_url":"https://api.github.com/users/newbazz/repos","events_url":"https://api.github.com/users/newbazz/events{/privacy}","received_events_url":"https://api.github.com/users/newbazz/received_events","type":"User","site_admin":false},"repo":{"id":104270944,"name":"contest-portal-backend","full_name":"newbazz/contest-portal-backend","owner":{"login":"newbazz","id":25884863,"avatar_url":"https://avatars1.githubusercontent.com/u/25884863?v=4","gravatar_id":"","url":"https://api.github.com/users/newbazz","html_url":"https://github.com/newbazz","followers_url":"https://api.github.com/users/newbazz/followers","following_url":"https://api.github.com/users/newbazz/following{/other_user}","gists_url":"https://api.github.com/users/newbazz/gists{/gist_id}","starred_url":"https://api.github.com/users/newbazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newbazz/subscriptions","organizations_url":"https://api.github.com/users/newbazz/orgs","repos_url":"https://api.github.com/users/newbazz/repos","events_url":"https://api.github.com/users/newbazz/events{/privacy}","received_events_url":"https://api.github.com/users/newbazz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/newbazz/contest-portal-backend","description":null,"fork":true,"url":"https://api.github.com/repos/newbazz/contest-portal-backend","forks_url":"https://api.github.com/repos/newbazz/contest-portal-backend/forks","keys_url":"https://api.github.com/repos/newbazz/contest-portal-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newbazz/contest-portal-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newbazz/contest-portal-backend/teams","hooks_url":"https://api.github.com/repos/newbazz/contest-portal-backend/hooks","issue_events_url":"https://api.github.com/repos/newbazz/contest-portal-backend/issues/events{/number}","events_url":"https://api.github.com/repos/newbazz/contest-portal-backend/events","assignees_url":"https://api.github.com/repos/newbazz/contest-portal-backend/assignees{/user}","branches_url":"https://api.github.com/repos/newbazz/contest-portal-backend/branches{/branch}","tags_url":"https://api.github.com/repos/newbazz/contest-portal-backend/tags","blobs_url":"https://api.github.com/repos/newbazz/contest-portal-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newbazz/contest-portal-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newbazz/contest-portal-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/newbazz/contest-portal-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newbazz/contest-portal-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/newbazz/contest-portal-backend/languages","stargazers_url":"https://api.github.com/repos/newbazz/contest-portal-backend/stargazers","contributors_url":"https://api.github.com/repos/newbazz/contest-portal-backend/contributors","subscribers_url":"https://api.github.com/repos/newbazz/contest-portal-backend/subscribers","subscription_url":"https://api.github.com/repos/newbazz/contest-portal-backend/subscription","commits_url":"https://api.github.com/repos/newbazz/contest-portal-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/newbazz/contest-portal-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/newbazz/contest-portal-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/newbazz/contest-portal-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/newbazz/contest-portal-backend/contents/{+path}","compare_url":"https://api.github.com/repos/newbazz/contest-portal-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newbazz/contest-portal-backend/merges","archive_url":"https://api.github.com/repos/newbazz/contest-portal-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newbazz/contest-portal-backend/downloads","issues_url":"https://api.github.com/repos/newbazz/contest-portal-backend/issues{/number}","pulls_url":"https://api.github.com/repos/newbazz/contest-portal-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/newbazz/contest-portal-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/newbazz/contest-portal-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newbazz/contest-portal-backend/labels{/name}","releases_url":"https://api.github.com/repos/newbazz/contest-portal-backend/releases{/id}","deployments_url":"https://api.github.com/repos/newbazz/contest-portal-backend/deployments","created_at":"2017-09-20T21:47:56Z","updated_at":"2017-09-20T21:47:57Z","pushed_at":"2017-09-29T10:09:54Z","git_url":"git://github.com/newbazz/contest-portal-backend.git","ssh_url":"git@github.com:newbazz/contest-portal-backend.git","clone_url":"https://github.com/newbazz/contest-portal-backend.git","svn_url":"https://github.com/newbazz/contest-portal-backend","homepage":null,"size":73,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"felicity-iiith:master","ref":"master","sha":"2f62521d86f5ecfb3e11049558f2d66436c71903","user":{"login":"felicity-iiith","id":7930741,"avatar_url":"https://avatars3.githubusercontent.com/u/7930741?v=4","gravatar_id":"","url":"https://api.github.com/users/felicity-iiith","html_url":"https://github.com/felicity-iiith","followers_url":"https://api.github.com/users/felicity-iiith/followers","following_url":"https://api.github.com/users/felicity-iiith/following{/other_user}","gists_url":"https://api.github.com/users/felicity-iiith/gists{/gist_id}","starred_url":"https://api.github.com/users/felicity-iiith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicity-iiith/subscriptions","organizations_url":"https://api.github.com/users/felicity-iiith/orgs","repos_url":"https://api.github.com/users/felicity-iiith/repos","events_url":"https://api.github.com/users/felicity-iiith/events{/privacy}","received_events_url":"https://api.github.com/users/felicity-iiith/received_events","type":"Organization","site_admin":false},"repo":{"id":104114353,"name":"contest-portal-backend","full_name":"felicity-iiith/contest-portal-backend","owner":{"login":"felicity-iiith","id":7930741,"avatar_url":"https://avatars3.githubusercontent.com/u/7930741?v=4","gravatar_id":"","url":"https://api.github.com/users/felicity-iiith","html_url":"https://github.com/felicity-iiith","followers_url":"https://api.github.com/users/felicity-iiith/followers","following_url":"https://api.github.com/users/felicity-iiith/following{/other_user}","gists_url":"https://api.github.com/users/felicity-iiith/gists{/gist_id}","starred_url":"https://api.github.com/users/felicity-iiith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicity-iiith/subscriptions","organizations_url":"https://api.github.com/users/felicity-iiith/orgs","repos_url":"https://api.github.com/users/felicity-iiith/repos","events_url":"https://api.github.com/users/felicity-iiith/events{/privacy}","received_events_url":"https://api.github.com/users/felicity-iiith/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/felicity-iiith/contest-portal-backend","description":null,"fork":false,"url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend","forks_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/forks","keys_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/teams","hooks_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/hooks","issue_events_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues/events{/number}","events_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/events","assignees_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/assignees{/user}","branches_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/branches{/branch}","tags_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/tags","blobs_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/languages","stargazers_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/stargazers","contributors_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/contributors","subscribers_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/subscribers","subscription_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/subscription","commits_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/contents/{+path}","compare_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/merges","archive_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/downloads","issues_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues{/number}","pulls_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/labels{/name}","releases_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/releases{/id}","deployments_url":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/deployments","created_at":"2017-09-19T18:45:07Z","updated_at":"2017-09-28T16:53:26Z","pushed_at":"2017-09-29T10:10:45Z","git_url":"git://github.com/felicity-iiith/contest-portal-backend.git","ssh_url":"git@github.com:felicity-iiith/contest-portal-backend.git","clone_url":"https://github.com/felicity-iiith/contest-portal-backend.git","svn_url":"https://github.com/felicity-iiith/contest-portal-backend","homepage":null,"size":57,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":4,"forks":14,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28"},"html":{"href":"https://github.com/felicity-iiith/contest-portal-backend/pull/28"},"issue":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues/28"},"comments":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/felicity-iiith/contest-portal-backend/statuses/253f258f68fe37caa131ab5bc2d3ced1200816c7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"meghprkh"}}