{"action":"created","comment":{"url":"https://api.github.com/repos/chc5/gitgud/pulls/comments/234429446","pull_request_review_id":176076112,"id":234429446,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDQyOTQ0Ng==","diff_hunk":"@@ -0,0 +1,36 @@\n+const mongoose = require('mongoose');\n+mongoose.promise = Promise;\n+const Schema = mongoose.Schema;\n+const date = require('date-and-time');\n+\n+const DocSchema = new Schema({\n+  title: {type: String, required:true},\n+  content: {type: String, required:true},\n+  owner_id: {type: Schema.Types.ObjectId, ref: 'User'},\n+  locked: Boolean,\n+  revisions:[\n+    {type: Schema.Types.ObjectId, ref: 'Revision'}\n+  ],\n+  date_created: {type: Date, ","path":"server/doc.js","position":13,"original_position":14,"commit_id":"7ab65328f9d387a3ba25a490315bacb6aca97896","original_commit_id":"a3bf988f36fe31db31c75b5c83ca9451881f50d3","user":{"login":"melvinheks","id":27136106,"node_id":"MDQ6VXNlcjI3MTM2MTA2","avatar_url":"https://avatars0.githubusercontent.com/u/27136106?v=4","gravatar_id":"","url":"https://api.github.com/users/melvinheks","html_url":"https://github.com/melvinheks","followers_url":"https://api.github.com/users/melvinheks/followers","following_url":"https://api.github.com/users/melvinheks/following{/other_user}","gists_url":"https://api.github.com/users/melvinheks/gists{/gist_id}","starred_url":"https://api.github.com/users/melvinheks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melvinheks/subscriptions","organizations_url":"https://api.github.com/users/melvinheks/orgs","repos_url":"https://api.github.com/users/melvinheks/repos","events_url":"https://api.github.com/users/melvinheks/events{/privacy}","received_events_url":"https://api.github.com/users/melvinheks/received_events","type":"User","site_admin":false},"body":"Address this","created_at":"2018-11-18T05:12:06Z","updated_at":"2018-11-18T05:16:01Z","html_url":"https://github.com/chc5/gitgud/pull/8#discussion_r234429446","pull_request_url":"https://api.github.com/repos/chc5/gitgud/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/chc5/gitgud/pulls/comments/234429446"},"html":{"href":"https://github.com/chc5/gitgud/pull/8#discussion_r234429446"},"pull_request":{"href":"https://api.github.com/repos/chc5/gitgud/pulls/8"}},"in_reply_to_id":234424610},"pull_request":{"url":"https://api.github.com/repos/chc5/gitgud/pulls/8","id":230543622,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNTQzNjIy","html_url":"https://github.com/chc5/gitgud/pull/8","diff_url":"https://github.com/chc5/gitgud/pull/8.diff","patch_url":"https://github.com/chc5/gitgud/pull/8.patch","issue_url":"https://api.github.com/repos/chc5/gitgud/issues/8","number":8,"state":"open","locked":false,"title":"Doc schema, filter, Date","user":{"login":"MicLi01","id":37303581,"node_id":"MDQ6VXNlcjM3MzAzNTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37303581?v=4","gravatar_id":"","url":"https://api.github.com/users/MicLi01","html_url":"https://github.com/MicLi01","followers_url":"https://api.github.com/users/MicLi01/followers","following_url":"https://api.github.com/users/MicLi01/following{/other_user}","gists_url":"https://api.github.com/users/MicLi01/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLi01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLi01/subscriptions","organizations_url":"https://api.github.com/users/MicLi01/orgs","repos_url":"https://api.github.com/users/MicLi01/repos","events_url":"https://api.github.com/users/MicLi01/events{/privacy}","received_events_url":"https://api.github.com/users/MicLi01/received_events","type":"User","site_admin":false},"body":"Leave feedback. I will move files to correct directory when the database connection items are merged.","created_at":"2018-11-13T16:34:17Z","updated_at":"2018-11-18T05:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc3668f142f6b6373847925dc09ef8b9d64989f0","assignee":{"login":"MicLi01","id":37303581,"node_id":"MDQ6VXNlcjM3MzAzNTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37303581?v=4","gravatar_id":"","url":"https://api.github.com/users/MicLi01","html_url":"https://github.com/MicLi01","followers_url":"https://api.github.com/users/MicLi01/followers","following_url":"https://api.github.com/users/MicLi01/following{/other_user}","gists_url":"https://api.github.com/users/MicLi01/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLi01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLi01/subscriptions","organizations_url":"https://api.github.com/users/MicLi01/orgs","repos_url":"https://api.github.com/users/MicLi01/repos","events_url":"https://api.github.com/users/MicLi01/events{/privacy}","received_events_url":"https://api.github.com/users/MicLi01/received_events","type":"User","site_admin":false},"assignees":[{"login":"MicLi01","id":37303581,"node_id":"MDQ6VXNlcjM3MzAzNTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37303581?v=4","gravatar_id":"","url":"https://api.github.com/users/MicLi01","html_url":"https://github.com/MicLi01","followers_url":"https://api.github.com/users/MicLi01/followers","following_url":"https://api.github.com/users/MicLi01/following{/other_user}","gists_url":"https://api.github.com/users/MicLi01/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLi01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLi01/subscriptions","organizations_url":"https://api.github.com/users/MicLi01/orgs","repos_url":"https://api.github.com/users/MicLi01/repos","events_url":"https://api.github.com/users/MicLi01/events{/privacy}","received_events_url":"https://api.github.com/users/MicLi01/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"chc5","id":21010314,"node_id":"MDQ6VXNlcjIxMDEwMzE0","avatar_url":"https://avatars0.githubusercontent.com/u/21010314?v=4","gravatar_id":"","url":"https://api.github.com/users/chc5","html_url":"https://github.com/chc5","followers_url":"https://api.github.com/users/chc5/followers","following_url":"https://api.github.com/users/chc5/following{/other_user}","gists_url":"https://api.github.com/users/chc5/gists{/gist_id}","starred_url":"https://api.github.com/users/chc5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chc5/subscriptions","organizations_url":"https://api.github.com/users/chc5/orgs","repos_url":"https://api.github.com/users/chc5/repos","events_url":"https://api.github.com/users/chc5/events{/privacy}","received_events_url":"https://api.github.com/users/chc5/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1092218797,"node_id":"MDU6TGFiZWwxMDkyMjE4Nzk3","url":"https://api.github.com/repos/chc5/gitgud/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/chc5/gitgud/pulls/8/commits","review_comments_url":"https://api.github.com/repos/chc5/gitgud/pulls/8/comments","review_comment_url":"https://api.github.com/repos/chc5/gitgud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chc5/gitgud/issues/8/comments","statuses_url":"https://api.github.com/repos/chc5/gitgud/statuses/7ab65328f9d387a3ba25a490315bacb6aca97896","head":{"label":"MicLi01:master","ref":"master","sha":"7ab65328f9d387a3ba25a490315bacb6aca97896","user":{"login":"MicLi01","id":37303581,"node_id":"MDQ6VXNlcjM3MzAzNTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37303581?v=4","gravatar_id":"","url":"https://api.github.com/users/MicLi01","html_url":"https://github.com/MicLi01","followers_url":"https://api.github.com/users/MicLi01/followers","following_url":"https://api.github.com/users/MicLi01/following{/other_user}","gists_url":"https://api.github.com/users/MicLi01/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLi01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLi01/subscriptions","organizations_url":"https://api.github.com/users/MicLi01/orgs","repos_url":"https://api.github.com/users/MicLi01/repos","events_url":"https://api.github.com/users/MicLi01/events{/privacy}","received_events_url":"https://api.github.com/users/MicLi01/received_events","type":"User","site_admin":false},"repo":{"id":157101583,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcxMDE1ODM=","name":"gitgud","full_name":"MicLi01/gitgud","private":false,"owner":{"login":"MicLi01","id":37303581,"node_id":"MDQ6VXNlcjM3MzAzNTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37303581?v=4","gravatar_id":"","url":"https://api.github.com/users/MicLi01","html_url":"https://github.com/MicLi01","followers_url":"https://api.github.com/users/MicLi01/followers","following_url":"https://api.github.com/users/MicLi01/following{/other_user}","gists_url":"https://api.github.com/users/MicLi01/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLi01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLi01/subscriptions","organizations_url":"https://api.github.com/users/MicLi01/orgs","repos_url":"https://api.github.com/users/MicLi01/repos","events_url":"https://api.github.com/users/MicLi01/events{/privacy}","received_events_url":"https://api.github.com/users/MicLi01/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MicLi01/gitgud","description":null,"fork":true,"url":"https://api.github.com/repos/MicLi01/gitgud","forks_url":"https://api.github.com/repos/MicLi01/gitgud/forks","keys_url":"https://api.github.com/repos/MicLi01/gitgud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MicLi01/gitgud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MicLi01/gitgud/teams","hooks_url":"https://api.github.com/repos/MicLi01/gitgud/hooks","issue_events_url":"https://api.github.com/repos/MicLi01/gitgud/issues/events{/number}","events_url":"https://api.github.com/repos/MicLi01/gitgud/events","assignees_url":"https://api.github.com/repos/MicLi01/gitgud/assignees{/user}","branches_url":"https://api.github.com/repos/MicLi01/gitgud/branches{/branch}","tags_url":"https://api.github.com/repos/MicLi01/gitgud/tags","blobs_url":"https://api.github.com/repos/MicLi01/gitgud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MicLi01/gitgud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MicLi01/gitgud/git/refs{/sha}","trees_url":"https://api.github.com/repos/MicLi01/gitgud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MicLi01/gitgud/statuses/{sha}","languages_url":"https://api.github.com/repos/MicLi01/gitgud/languages","stargazers_url":"https://api.github.com/repos/MicLi01/gitgud/stargazers","contributors_url":"https://api.github.com/repos/MicLi01/gitgud/contributors","subscribers_url":"https://api.github.com/repos/MicLi01/gitgud/subscribers","subscription_url":"https://api.github.com/repos/MicLi01/gitgud/subscription","commits_url":"https://api.github.com/repos/MicLi01/gitgud/commits{/sha}","git_commits_url":"https://api.github.com/repos/MicLi01/gitgud/git/commits{/sha}","comments_url":"https://api.github.com/repos/MicLi01/gitgud/comments{/number}","issue_comment_url":"https://api.github.com/repos/MicLi01/gitgud/issues/comments{/number}","contents_url":"https://api.github.com/repos/MicLi01/gitgud/contents/{+path}","compare_url":"https://api.github.com/repos/MicLi01/gitgud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MicLi01/gitgud/merges","archive_url":"https://api.github.com/repos/MicLi01/gitgud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MicLi01/gitgud/downloads","issues_url":"https://api.github.com/repos/MicLi01/gitgud/issues{/number}","pulls_url":"https://api.github.com/repos/MicLi01/gitgud/pulls{/number}","milestones_url":"https://api.github.com/repos/MicLi01/gitgud/milestones{/number}","notifications_url":"https://api.github.com/repos/MicLi01/gitgud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MicLi01/gitgud/labels{/name}","releases_url":"https://api.github.com/repos/MicLi01/gitgud/releases{/id}","deployments_url":"https://api.github.com/repos/MicLi01/gitgud/deployments","created_at":"2018-11-11T17:06:32Z","updated_at":"2018-11-18T04:56:26Z","pushed_at":"2018-11-18T04:56:24Z","git_url":"git://github.com/MicLi01/gitgud.git","ssh_url":"git@github.com:MicLi01/gitgud.git","clone_url":"https://github.com/MicLi01/gitgud.git","svn_url":"https://github.com/MicLi01/gitgud","homepage":null,"size":81,"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,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chc5:Mic_Document_control","ref":"Mic_Document_control","sha":"308de54e0897f61ba8dbb754fe6d7f0ab499c6a2","user":{"login":"chc5","id":21010314,"node_id":"MDQ6VXNlcjIxMDEwMzE0","avatar_url":"https://avatars0.githubusercontent.com/u/21010314?v=4","gravatar_id":"","url":"https://api.github.com/users/chc5","html_url":"https://github.com/chc5","followers_url":"https://api.github.com/users/chc5/followers","following_url":"https://api.github.com/users/chc5/following{/other_user}","gists_url":"https://api.github.com/users/chc5/gists{/gist_id}","starred_url":"https://api.github.com/users/chc5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chc5/subscriptions","organizations_url":"https://api.github.com/users/chc5/orgs","repos_url":"https://api.github.com/users/chc5/repos","events_url":"https://api.github.com/users/chc5/events{/privacy}","received_events_url":"https://api.github.com/users/chc5/received_events","type":"User","site_admin":false},"repo":{"id":153178019,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMxNzgwMTk=","name":"gitgud","full_name":"chc5/gitgud","private":false,"owner":{"login":"chc5","id":21010314,"node_id":"MDQ6VXNlcjIxMDEwMzE0","avatar_url":"https://avatars0.githubusercontent.com/u/21010314?v=4","gravatar_id":"","url":"https://api.github.com/users/chc5","html_url":"https://github.com/chc5","followers_url":"https://api.github.com/users/chc5/followers","following_url":"https://api.github.com/users/chc5/following{/other_user}","gists_url":"https://api.github.com/users/chc5/gists{/gist_id}","starred_url":"https://api.github.com/users/chc5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chc5/subscriptions","organizations_url":"https://api.github.com/users/chc5/orgs","repos_url":"https://api.github.com/users/chc5/repos","events_url":"https://api.github.com/users/chc5/events{/privacy}","received_events_url":"https://api.github.com/users/chc5/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chc5/gitgud","description":null,"fork":false,"url":"https://api.github.com/repos/chc5/gitgud","forks_url":"https://api.github.com/repos/chc5/gitgud/forks","keys_url":"https://api.github.com/repos/chc5/gitgud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chc5/gitgud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chc5/gitgud/teams","hooks_url":"https://api.github.com/repos/chc5/gitgud/hooks","issue_events_url":"https://api.github.com/repos/chc5/gitgud/issues/events{/number}","events_url":"https://api.github.com/repos/chc5/gitgud/events","assignees_url":"https://api.github.com/repos/chc5/gitgud/assignees{/user}","branches_url":"https://api.github.com/repos/chc5/gitgud/branches{/branch}","tags_url":"https://api.github.com/repos/chc5/gitgud/tags","blobs_url":"https://api.github.com/repos/chc5/gitgud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chc5/gitgud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chc5/gitgud/git/refs{/sha}","trees_url":"https://api.github.com/repos/chc5/gitgud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chc5/gitgud/statuses/{sha}","languages_url":"https://api.github.com/repos/chc5/gitgud/languages","stargazers_url":"https://api.github.com/repos/chc5/gitgud/stargazers","contributors_url":"https://api.github.com/repos/chc5/gitgud/contributors","subscribers_url":"https://api.github.com/repos/chc5/gitgud/subscribers","subscription_url":"https://api.github.com/repos/chc5/gitgud/subscription","commits_url":"https://api.github.com/repos/chc5/gitgud/commits{/sha}","git_commits_url":"https://api.github.com/repos/chc5/gitgud/git/commits{/sha}","comments_url":"https://api.github.com/repos/chc5/gitgud/comments{/number}","issue_comment_url":"https://api.github.com/repos/chc5/gitgud/issues/comments{/number}","contents_url":"https://api.github.com/repos/chc5/gitgud/contents/{+path}","compare_url":"https://api.github.com/repos/chc5/gitgud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chc5/gitgud/merges","archive_url":"https://api.github.com/repos/chc5/gitgud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chc5/gitgud/downloads","issues_url":"https://api.github.com/repos/chc5/gitgud/issues{/number}","pulls_url":"https://api.github.com/repos/chc5/gitgud/pulls{/number}","milestones_url":"https://api.github.com/repos/chc5/gitgud/milestones{/number}","notifications_url":"https://api.github.com/repos/chc5/gitgud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chc5/gitgud/labels{/name}","releases_url":"https://api.github.com/repos/chc5/gitgud/releases{/id}","deployments_url":"https://api.github.com/repos/chc5/gitgud/deployments","created_at":"2018-10-15T20:34:58Z","updated_at":"2018-11-17T20:26:06Z","pushed_at":"2018-11-18T04:56:26Z","git_url":"git://github.com/chc5/gitgud.git","ssh_url":"git@github.com:chc5/gitgud.git","clone_url":"https://github.com/chc5/gitgud.git","svn_url":"https://github.com/chc5/gitgud","homepage":null,"size":85,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chc5/gitgud/pulls/8"},"html":{"href":"https://github.com/chc5/gitgud/pull/8"},"issue":{"href":"https://api.github.com/repos/chc5/gitgud/issues/8"},"comments":{"href":"https://api.github.com/repos/chc5/gitgud/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/chc5/gitgud/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/chc5/gitgud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chc5/gitgud/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/chc5/gitgud/statuses/7ab65328f9d387a3ba25a490315bacb6aca97896"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"melvinheks"}}