{"action":"created","comment":{"url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/comments/31868721","id":31868721,"diff_hunk":"@@ -2,24 +2,23 @@\n var mongoose = require('mongoose');\n \n var schema = new mongoose.Schema({\n-    date: {\n-        type: Date\n+    captureTime: { \n+        type: Date, \n+        default: Date.now\n     },\n-    time: { \n-        type : Date, \n-        default: Date.now \n-    },\n-    url: {\n-        type: String\n-    },\n-    screenshot: {\n+    websiteUrl: {\n         type: String\n     },\n-    diffImage: {\n-        id: String\n-    },\n-    diffPercentage: {\n-        id: String\n+    screenshots: [{","path":"server/db/models/webpageCapture.js","position":26,"original_position":26,"commit_id":"7eb2a88df8439137253cf734e832475b559ee0cd","original_commit_id":"7eb2a88df8439137253cf734e832475b559ee0cd","user":{"login":"nogever","id":3888294,"avatar_url":"https://avatars.githubusercontent.com/u/3888294?v=3","gravatar_id":"","url":"https://api.github.com/users/nogever","html_url":"https://github.com/nogever","followers_url":"https://api.github.com/users/nogever/followers","following_url":"https://api.github.com/users/nogever/following{/other_user}","gists_url":"https://api.github.com/users/nogever/gists{/gist_id}","starred_url":"https://api.github.com/users/nogever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nogever/subscriptions","organizations_url":"https://api.github.com/users/nogever/orgs","repos_url":"https://api.github.com/users/nogever/repos","events_url":"https://api.github.com/users/nogever/events{/privacy}","received_events_url":"https://api.github.com/users/nogever/received_events","type":"User","site_admin":false},"body":"replace line 12 to 15 with \r\n```viewport: String,\r\ncurrentScreenshot: String\r\n```","created_at":"2015-06-06T15:03:02Z","updated_at":"2015-06-06T15:03:02Z","html_url":"https://github.com/lei-clearsky/doraemon/pull/17#discussion_r31868721","pull_request_url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/comments/31868721"},"html":{"href":"https://github.com/lei-clearsky/doraemon/pull/17#discussion_r31868721"},"pull_request":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17","id":37080936,"html_url":"https://github.com/lei-clearsky/doraemon/pull/17","diff_url":"https://github.com/lei-clearsky/doraemon/pull/17.diff","patch_url":"https://github.com/lei-clearsky/doraemon/pull/17.patch","issue_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues/17","number":17,"state":"open","locked":false,"title":"updated image.js","user":{"login":"vatteh","id":4132331,"avatar_url":"https://avatars.githubusercontent.com/u/4132331?v=3","gravatar_id":"","url":"https://api.github.com/users/vatteh","html_url":"https://github.com/vatteh","followers_url":"https://api.github.com/users/vatteh/followers","following_url":"https://api.github.com/users/vatteh/following{/other_user}","gists_url":"https://api.github.com/users/vatteh/gists{/gist_id}","starred_url":"https://api.github.com/users/vatteh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatteh/subscriptions","organizations_url":"https://api.github.com/users/vatteh/orgs","repos_url":"https://api.github.com/users/vatteh/repos","events_url":"https://api.github.com/users/vatteh/events{/privacy}","received_events_url":"https://api.github.com/users/vatteh/received_events","type":"User","site_admin":false},"body":"- updated package.json to include gm and nightmare\r\n\r\n- renamed image.js to webpageCapture.js (less confusing)\r\n\r\n- removed date because captureTime because new Date() contains the date & time at creation\r\n\r\n- because we might need to capture screenshots from multiple viewports, 'screenshots' is an array of objects instead, for each viewport set on that URL","created_at":"2015-06-06T00:28:24Z","updated_at":"2015-06-06T15:03:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1a8d3d11fcc23e83b742e55be0caea11c05fa77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17/commits","review_comments_url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17/comments","review_comment_url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues/17/comments","statuses_url":"https://api.github.com/repos/lei-clearsky/doraemon/statuses/7eb2a88df8439137253cf734e832475b559ee0cd","head":{"label":"lei-clearsky:model_updates","ref":"model_updates","sha":"7eb2a88df8439137253cf734e832475b559ee0cd","user":{"login":"lei-clearsky","id":3528817,"avatar_url":"https://avatars.githubusercontent.com/u/3528817?v=3","gravatar_id":"","url":"https://api.github.com/users/lei-clearsky","html_url":"https://github.com/lei-clearsky","followers_url":"https://api.github.com/users/lei-clearsky/followers","following_url":"https://api.github.com/users/lei-clearsky/following{/other_user}","gists_url":"https://api.github.com/users/lei-clearsky/gists{/gist_id}","starred_url":"https://api.github.com/users/lei-clearsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lei-clearsky/subscriptions","organizations_url":"https://api.github.com/users/lei-clearsky/orgs","repos_url":"https://api.github.com/users/lei-clearsky/repos","events_url":"https://api.github.com/users/lei-clearsky/events{/privacy}","received_events_url":"https://api.github.com/users/lei-clearsky/received_events","type":"User","site_admin":false},"repo":{"id":36570572,"name":"doraemon","full_name":"lei-clearsky/doraemon","owner":{"login":"lei-clearsky","id":3528817,"avatar_url":"https://avatars.githubusercontent.com/u/3528817?v=3","gravatar_id":"","url":"https://api.github.com/users/lei-clearsky","html_url":"https://github.com/lei-clearsky","followers_url":"https://api.github.com/users/lei-clearsky/followers","following_url":"https://api.github.com/users/lei-clearsky/following{/other_user}","gists_url":"https://api.github.com/users/lei-clearsky/gists{/gist_id}","starred_url":"https://api.github.com/users/lei-clearsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lei-clearsky/subscriptions","organizations_url":"https://api.github.com/users/lei-clearsky/orgs","repos_url":"https://api.github.com/users/lei-clearsky/repos","events_url":"https://api.github.com/users/lei-clearsky/events{/privacy}","received_events_url":"https://api.github.com/users/lei-clearsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lei-clearsky/doraemon","description":"","fork":false,"url":"https://api.github.com/repos/lei-clearsky/doraemon","forks_url":"https://api.github.com/repos/lei-clearsky/doraemon/forks","keys_url":"https://api.github.com/repos/lei-clearsky/doraemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lei-clearsky/doraemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lei-clearsky/doraemon/teams","hooks_url":"https://api.github.com/repos/lei-clearsky/doraemon/hooks","issue_events_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues/events{/number}","events_url":"https://api.github.com/repos/lei-clearsky/doraemon/events","assignees_url":"https://api.github.com/repos/lei-clearsky/doraemon/assignees{/user}","branches_url":"https://api.github.com/repos/lei-clearsky/doraemon/branches{/branch}","tags_url":"https://api.github.com/repos/lei-clearsky/doraemon/tags","blobs_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lei-clearsky/doraemon/statuses/{sha}","languages_url":"https://api.github.com/repos/lei-clearsky/doraemon/languages","stargazers_url":"https://api.github.com/repos/lei-clearsky/doraemon/stargazers","contributors_url":"https://api.github.com/repos/lei-clearsky/doraemon/contributors","subscribers_url":"https://api.github.com/repos/lei-clearsky/doraemon/subscribers","subscription_url":"https://api.github.com/repos/lei-clearsky/doraemon/subscription","commits_url":"https://api.github.com/repos/lei-clearsky/doraemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/lei-clearsky/doraemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/lei-clearsky/doraemon/contents/{+path}","compare_url":"https://api.github.com/repos/lei-clearsky/doraemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lei-clearsky/doraemon/merges","archive_url":"https://api.github.com/repos/lei-clearsky/doraemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lei-clearsky/doraemon/downloads","issues_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues{/number}","pulls_url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls{/number}","milestones_url":"https://api.github.com/repos/lei-clearsky/doraemon/milestones{/number}","notifications_url":"https://api.github.com/repos/lei-clearsky/doraemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lei-clearsky/doraemon/labels{/name}","releases_url":"https://api.github.com/repos/lei-clearsky/doraemon/releases{/id}","created_at":"2015-05-30T18:34:23Z","updated_at":"2015-05-31T01:53:40Z","pushed_at":"2015-06-06T14:51:42Z","git_url":"git://github.com/lei-clearsky/doraemon.git","ssh_url":"git@github.com:lei-clearsky/doraemon.git","clone_url":"https://github.com/lei-clearsky/doraemon.git","svn_url":"https://github.com/lei-clearsky/doraemon","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"lei-clearsky:master","ref":"master","sha":"0cfe07e464e6c16b5663f1e8dce060f58326d518","user":{"login":"lei-clearsky","id":3528817,"avatar_url":"https://avatars.githubusercontent.com/u/3528817?v=3","gravatar_id":"","url":"https://api.github.com/users/lei-clearsky","html_url":"https://github.com/lei-clearsky","followers_url":"https://api.github.com/users/lei-clearsky/followers","following_url":"https://api.github.com/users/lei-clearsky/following{/other_user}","gists_url":"https://api.github.com/users/lei-clearsky/gists{/gist_id}","starred_url":"https://api.github.com/users/lei-clearsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lei-clearsky/subscriptions","organizations_url":"https://api.github.com/users/lei-clearsky/orgs","repos_url":"https://api.github.com/users/lei-clearsky/repos","events_url":"https://api.github.com/users/lei-clearsky/events{/privacy}","received_events_url":"https://api.github.com/users/lei-clearsky/received_events","type":"User","site_admin":false},"repo":{"id":36570572,"name":"doraemon","full_name":"lei-clearsky/doraemon","owner":{"login":"lei-clearsky","id":3528817,"avatar_url":"https://avatars.githubusercontent.com/u/3528817?v=3","gravatar_id":"","url":"https://api.github.com/users/lei-clearsky","html_url":"https://github.com/lei-clearsky","followers_url":"https://api.github.com/users/lei-clearsky/followers","following_url":"https://api.github.com/users/lei-clearsky/following{/other_user}","gists_url":"https://api.github.com/users/lei-clearsky/gists{/gist_id}","starred_url":"https://api.github.com/users/lei-clearsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lei-clearsky/subscriptions","organizations_url":"https://api.github.com/users/lei-clearsky/orgs","repos_url":"https://api.github.com/users/lei-clearsky/repos","events_url":"https://api.github.com/users/lei-clearsky/events{/privacy}","received_events_url":"https://api.github.com/users/lei-clearsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lei-clearsky/doraemon","description":"","fork":false,"url":"https://api.github.com/repos/lei-clearsky/doraemon","forks_url":"https://api.github.com/repos/lei-clearsky/doraemon/forks","keys_url":"https://api.github.com/repos/lei-clearsky/doraemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lei-clearsky/doraemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lei-clearsky/doraemon/teams","hooks_url":"https://api.github.com/repos/lei-clearsky/doraemon/hooks","issue_events_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues/events{/number}","events_url":"https://api.github.com/repos/lei-clearsky/doraemon/events","assignees_url":"https://api.github.com/repos/lei-clearsky/doraemon/assignees{/user}","branches_url":"https://api.github.com/repos/lei-clearsky/doraemon/branches{/branch}","tags_url":"https://api.github.com/repos/lei-clearsky/doraemon/tags","blobs_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lei-clearsky/doraemon/statuses/{sha}","languages_url":"https://api.github.com/repos/lei-clearsky/doraemon/languages","stargazers_url":"https://api.github.com/repos/lei-clearsky/doraemon/stargazers","contributors_url":"https://api.github.com/repos/lei-clearsky/doraemon/contributors","subscribers_url":"https://api.github.com/repos/lei-clearsky/doraemon/subscribers","subscription_url":"https://api.github.com/repos/lei-clearsky/doraemon/subscription","commits_url":"https://api.github.com/repos/lei-clearsky/doraemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/lei-clearsky/doraemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/lei-clearsky/doraemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/lei-clearsky/doraemon/contents/{+path}","compare_url":"https://api.github.com/repos/lei-clearsky/doraemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lei-clearsky/doraemon/merges","archive_url":"https://api.github.com/repos/lei-clearsky/doraemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lei-clearsky/doraemon/downloads","issues_url":"https://api.github.com/repos/lei-clearsky/doraemon/issues{/number}","pulls_url":"https://api.github.com/repos/lei-clearsky/doraemon/pulls{/number}","milestones_url":"https://api.github.com/repos/lei-clearsky/doraemon/milestones{/number}","notifications_url":"https://api.github.com/repos/lei-clearsky/doraemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lei-clearsky/doraemon/labels{/name}","releases_url":"https://api.github.com/repos/lei-clearsky/doraemon/releases{/id}","created_at":"2015-05-30T18:34:23Z","updated_at":"2015-05-31T01:53:40Z","pushed_at":"2015-06-06T14:51:42Z","git_url":"git://github.com/lei-clearsky/doraemon.git","ssh_url":"git@github.com:lei-clearsky/doraemon.git","clone_url":"https://github.com/lei-clearsky/doraemon.git","svn_url":"https://github.com/lei-clearsky/doraemon","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17"},"html":{"href":"https://github.com/lei-clearsky/doraemon/pull/17"},"issue":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/issues/17"},"comments":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/lei-clearsky/doraemon/statuses/7eb2a88df8439137253cf734e832475b559ee0cd"}}}}