{"action":"created","comment":{"url":"https://api.github.com/repos/quantifind/qf2e/pulls/comments/31980271","id":31980271,"diff_hunk":"@@ -118,6 +126,19 @@ function QF2E(tests, opts) {\n   if(!tests.outpath.indexOf('/', tests.outpath.length - 1) !== -1) {\n     tests.outpath += '/';\n   }\n+\n+  // prefix the outpath with the current date\n+  var rightNow = new Date();\n+  tests.outpath += [\n+    rightNow.getFullYear(),\n+    pad(rightNow.getMonth()+1, 2),\n+    pad(rightNow.getDate(), 2)\n+  ].join('-') + '_' + [\n+    pad(rightNow.getHours(), 2),\n+    pad(rightNow.getMinutes(), 2),\n+    pad(rightNow.getSeconds(), 2)\n+  ].join('-') + '/';\n+  console.log(tests.outpath)","path":"screenshots.js","position":31,"original_position":31,"commit_id":"4ad00b2e77c992e1b33e98460f5c3477fcd7342d","original_commit_id":"4ad00b2e77c992e1b33e98460f5c3477fcd7342d","user":{"login":"Mortimerp9","id":628467,"avatar_url":"https://avatars.githubusercontent.com/u/628467?v=3","gravatar_id":"","url":"https://api.github.com/users/Mortimerp9","html_url":"https://github.com/Mortimerp9","followers_url":"https://api.github.com/users/Mortimerp9/followers","following_url":"https://api.github.com/users/Mortimerp9/following{/other_user}","gists_url":"https://api.github.com/users/Mortimerp9/gists{/gist_id}","starred_url":"https://api.github.com/users/Mortimerp9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mortimerp9/subscriptions","organizations_url":"https://api.github.com/users/Mortimerp9/orgs","repos_url":"https://api.github.com/users/Mortimerp9/repos","events_url":"https://api.github.com/users/Mortimerp9/events{/privacy}","received_events_url":"https://api.github.com/users/Mortimerp9/received_events","type":"User","site_admin":false},"body":"no need to commit the log","created_at":"2015-06-09T03:18:17Z","updated_at":"2015-06-09T03:18:17Z","html_url":"https://github.com/quantifind/qf2e/pull/2#discussion_r31980271","pull_request_url":"https://api.github.com/repos/quantifind/qf2e/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/quantifind/qf2e/pulls/comments/31980271"},"html":{"href":"https://github.com/quantifind/qf2e/pull/2#discussion_r31980271"},"pull_request":{"href":"https://api.github.com/repos/quantifind/qf2e/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/quantifind/qf2e/pulls/2","id":37211871,"html_url":"https://github.com/quantifind/qf2e/pull/2","diff_url":"https://github.com/quantifind/qf2e/pull/2.diff","patch_url":"https://github.com/quantifind/qf2e/pull/2.patch","issue_url":"https://api.github.com/repos/quantifind/qf2e/issues/2","number":2,"state":"open","locked":false,"title":"Store each test run in a folder named with a timestamp.","user":{"login":"joshcartme","id":764456,"avatar_url":"https://avatars.githubusercontent.com/u/764456?v=3","gravatar_id":"","url":"https://api.github.com/users/joshcartme","html_url":"https://github.com/joshcartme","followers_url":"https://api.github.com/users/joshcartme/followers","following_url":"https://api.github.com/users/joshcartme/following{/other_user}","gists_url":"https://api.github.com/users/joshcartme/gists{/gist_id}","starred_url":"https://api.github.com/users/joshcartme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshcartme/subscriptions","organizations_url":"https://api.github.com/users/joshcartme/orgs","repos_url":"https://api.github.com/users/joshcartme/repos","events_url":"https://api.github.com/users/joshcartme/events{/privacy}","received_events_url":"https://api.github.com/users/joshcartme/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-09T01:21:32Z","updated_at":"2015-06-09T03:18:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f631e85c0d7bd8aad25b5f0261c3964174e575b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/quantifind/qf2e/pulls/2/commits","review_comments_url":"https://api.github.com/repos/quantifind/qf2e/pulls/2/comments","review_comment_url":"https://api.github.com/repos/quantifind/qf2e/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quantifind/qf2e/issues/2/comments","statuses_url":"https://api.github.com/repos/quantifind/qf2e/statuses/4ad00b2e77c992e1b33e98460f5c3477fcd7342d","head":{"label":"quantifind:josh/path-timestamp","ref":"josh/path-timestamp","sha":"4ad00b2e77c992e1b33e98460f5c3477fcd7342d","user":{"login":"quantifind","id":3648453,"avatar_url":"https://avatars.githubusercontent.com/u/3648453?v=3","gravatar_id":"","url":"https://api.github.com/users/quantifind","html_url":"https://github.com/quantifind","followers_url":"https://api.github.com/users/quantifind/followers","following_url":"https://api.github.com/users/quantifind/following{/other_user}","gists_url":"https://api.github.com/users/quantifind/gists{/gist_id}","starred_url":"https://api.github.com/users/quantifind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantifind/subscriptions","organizations_url":"https://api.github.com/users/quantifind/orgs","repos_url":"https://api.github.com/users/quantifind/repos","events_url":"https://api.github.com/users/quantifind/events{/privacy}","received_events_url":"https://api.github.com/users/quantifind/received_events","type":"Organization","site_admin":false},"repo":{"id":30947589,"name":"qf2e","full_name":"quantifind/qf2e","owner":{"login":"quantifind","id":3648453,"avatar_url":"https://avatars.githubusercontent.com/u/3648453?v=3","gravatar_id":"","url":"https://api.github.com/users/quantifind","html_url":"https://github.com/quantifind","followers_url":"https://api.github.com/users/quantifind/followers","following_url":"https://api.github.com/users/quantifind/following{/other_user}","gists_url":"https://api.github.com/users/quantifind/gists{/gist_id}","starred_url":"https://api.github.com/users/quantifind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantifind/subscriptions","organizations_url":"https://api.github.com/users/quantifind/orgs","repos_url":"https://api.github.com/users/quantifind/repos","events_url":"https://api.github.com/users/quantifind/events{/privacy}","received_events_url":"https://api.github.com/users/quantifind/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quantifind/qf2e","description":"A tool to do end to end regression testing with node by comparing screenshots of webpages","fork":false,"url":"https://api.github.com/repos/quantifind/qf2e","forks_url":"https://api.github.com/repos/quantifind/qf2e/forks","keys_url":"https://api.github.com/repos/quantifind/qf2e/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantifind/qf2e/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantifind/qf2e/teams","hooks_url":"https://api.github.com/repos/quantifind/qf2e/hooks","issue_events_url":"https://api.github.com/repos/quantifind/qf2e/issues/events{/number}","events_url":"https://api.github.com/repos/quantifind/qf2e/events","assignees_url":"https://api.github.com/repos/quantifind/qf2e/assignees{/user}","branches_url":"https://api.github.com/repos/quantifind/qf2e/branches{/branch}","tags_url":"https://api.github.com/repos/quantifind/qf2e/tags","blobs_url":"https://api.github.com/repos/quantifind/qf2e/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantifind/qf2e/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantifind/qf2e/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantifind/qf2e/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantifind/qf2e/statuses/{sha}","languages_url":"https://api.github.com/repos/quantifind/qf2e/languages","stargazers_url":"https://api.github.com/repos/quantifind/qf2e/stargazers","contributors_url":"https://api.github.com/repos/quantifind/qf2e/contributors","subscribers_url":"https://api.github.com/repos/quantifind/qf2e/subscribers","subscription_url":"https://api.github.com/repos/quantifind/qf2e/subscription","commits_url":"https://api.github.com/repos/quantifind/qf2e/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantifind/qf2e/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantifind/qf2e/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantifind/qf2e/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantifind/qf2e/contents/{+path}","compare_url":"https://api.github.com/repos/quantifind/qf2e/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantifind/qf2e/merges","archive_url":"https://api.github.com/repos/quantifind/qf2e/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantifind/qf2e/downloads","issues_url":"https://api.github.com/repos/quantifind/qf2e/issues{/number}","pulls_url":"https://api.github.com/repos/quantifind/qf2e/pulls{/number}","milestones_url":"https://api.github.com/repos/quantifind/qf2e/milestones{/number}","notifications_url":"https://api.github.com/repos/quantifind/qf2e/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantifind/qf2e/labels{/name}","releases_url":"https://api.github.com/repos/quantifind/qf2e/releases{/id}","created_at":"2015-02-18T01:43:11Z","updated_at":"2015-03-30T21:24:54Z","pushed_at":"2015-06-09T01:21:32Z","git_url":"git://github.com/quantifind/qf2e.git","ssh_url":"git@github.com:quantifind/qf2e.git","clone_url":"https://github.com/quantifind/qf2e.git","svn_url":"https://github.com/quantifind/qf2e","homepage":null,"size":5208,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"quantifind:master","ref":"master","sha":"31905fc563e07ac589a36a5c158e2f00b5d5046b","user":{"login":"quantifind","id":3648453,"avatar_url":"https://avatars.githubusercontent.com/u/3648453?v=3","gravatar_id":"","url":"https://api.github.com/users/quantifind","html_url":"https://github.com/quantifind","followers_url":"https://api.github.com/users/quantifind/followers","following_url":"https://api.github.com/users/quantifind/following{/other_user}","gists_url":"https://api.github.com/users/quantifind/gists{/gist_id}","starred_url":"https://api.github.com/users/quantifind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantifind/subscriptions","organizations_url":"https://api.github.com/users/quantifind/orgs","repos_url":"https://api.github.com/users/quantifind/repos","events_url":"https://api.github.com/users/quantifind/events{/privacy}","received_events_url":"https://api.github.com/users/quantifind/received_events","type":"Organization","site_admin":false},"repo":{"id":30947589,"name":"qf2e","full_name":"quantifind/qf2e","owner":{"login":"quantifind","id":3648453,"avatar_url":"https://avatars.githubusercontent.com/u/3648453?v=3","gravatar_id":"","url":"https://api.github.com/users/quantifind","html_url":"https://github.com/quantifind","followers_url":"https://api.github.com/users/quantifind/followers","following_url":"https://api.github.com/users/quantifind/following{/other_user}","gists_url":"https://api.github.com/users/quantifind/gists{/gist_id}","starred_url":"https://api.github.com/users/quantifind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantifind/subscriptions","organizations_url":"https://api.github.com/users/quantifind/orgs","repos_url":"https://api.github.com/users/quantifind/repos","events_url":"https://api.github.com/users/quantifind/events{/privacy}","received_events_url":"https://api.github.com/users/quantifind/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quantifind/qf2e","description":"A tool to do end to end regression testing with node by comparing screenshots of webpages","fork":false,"url":"https://api.github.com/repos/quantifind/qf2e","forks_url":"https://api.github.com/repos/quantifind/qf2e/forks","keys_url":"https://api.github.com/repos/quantifind/qf2e/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantifind/qf2e/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantifind/qf2e/teams","hooks_url":"https://api.github.com/repos/quantifind/qf2e/hooks","issue_events_url":"https://api.github.com/repos/quantifind/qf2e/issues/events{/number}","events_url":"https://api.github.com/repos/quantifind/qf2e/events","assignees_url":"https://api.github.com/repos/quantifind/qf2e/assignees{/user}","branches_url":"https://api.github.com/repos/quantifind/qf2e/branches{/branch}","tags_url":"https://api.github.com/repos/quantifind/qf2e/tags","blobs_url":"https://api.github.com/repos/quantifind/qf2e/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantifind/qf2e/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantifind/qf2e/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantifind/qf2e/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantifind/qf2e/statuses/{sha}","languages_url":"https://api.github.com/repos/quantifind/qf2e/languages","stargazers_url":"https://api.github.com/repos/quantifind/qf2e/stargazers","contributors_url":"https://api.github.com/repos/quantifind/qf2e/contributors","subscribers_url":"https://api.github.com/repos/quantifind/qf2e/subscribers","subscription_url":"https://api.github.com/repos/quantifind/qf2e/subscription","commits_url":"https://api.github.com/repos/quantifind/qf2e/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantifind/qf2e/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantifind/qf2e/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantifind/qf2e/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantifind/qf2e/contents/{+path}","compare_url":"https://api.github.com/repos/quantifind/qf2e/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantifind/qf2e/merges","archive_url":"https://api.github.com/repos/quantifind/qf2e/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantifind/qf2e/downloads","issues_url":"https://api.github.com/repos/quantifind/qf2e/issues{/number}","pulls_url":"https://api.github.com/repos/quantifind/qf2e/pulls{/number}","milestones_url":"https://api.github.com/repos/quantifind/qf2e/milestones{/number}","notifications_url":"https://api.github.com/repos/quantifind/qf2e/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantifind/qf2e/labels{/name}","releases_url":"https://api.github.com/repos/quantifind/qf2e/releases{/id}","created_at":"2015-02-18T01:43:11Z","updated_at":"2015-03-30T21:24:54Z","pushed_at":"2015-06-09T01:21:32Z","git_url":"git://github.com/quantifind/qf2e.git","ssh_url":"git@github.com:quantifind/qf2e.git","clone_url":"https://github.com/quantifind/qf2e.git","svn_url":"https://github.com/quantifind/qf2e","homepage":null,"size":5208,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quantifind/qf2e/pulls/2"},"html":{"href":"https://github.com/quantifind/qf2e/pull/2"},"issue":{"href":"https://api.github.com/repos/quantifind/qf2e/issues/2"},"comments":{"href":"https://api.github.com/repos/quantifind/qf2e/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/quantifind/qf2e/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/quantifind/qf2e/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quantifind/qf2e/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/quantifind/qf2e/statuses/4ad00b2e77c992e1b33e98460f5c3477fcd7342d"}}}}