{"action":"created","comment":{"url":"https://api.github.com/repos/gemini-testing/looks-same/pulls/comments/36413095","id":36413095,"diff_hunk":"@@ -199,7 +199,12 @@ exports.createDiff = function saveDiff(opts, callback) {\n             };\n \n         buildDiffImage(result.first, result.second, diffOptions, function(result) {\n-            result.save(opts.diff, callback);\n+            if (opts.save === false) {\n+                result.createBuffer(callback);\n+            }\n+            else {","path":"index.js","position":17,"original_position":17,"commit_id":"38bb3640aa01a48a0a78c606591a41a1c1ed3837","original_commit_id":"38bb3640aa01a48a0a78c606591a41a1c1ed3837","user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars.githubusercontent.com/u/189580?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"body":"The current coding style is to keep this on the same line, that is: `} else {`","created_at":"2015-08-06T13:26:36Z","updated_at":"2015-08-06T13:26:36Z","html_url":"https://github.com/gemini-testing/looks-same/pull/6#discussion_r36413095","pull_request_url":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/looks-same/pulls/comments/36413095"},"html":{"href":"https://github.com/gemini-testing/looks-same/pull/6#discussion_r36413095"},"pull_request":{"href":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6","id":41562039,"html_url":"https://github.com/gemini-testing/looks-same/pull/6","diff_url":"https://github.com/gemini-testing/looks-same/pull/6.diff","patch_url":"https://github.com/gemini-testing/looks-same/pull/6.patch","issue_url":"https://api.github.com/repos/gemini-testing/looks-same/issues/6","number":6,"state":"open","locked":false,"title":"Added method createBuffer","user":{"login":"flore77","id":11819686,"avatar_url":"https://avatars.githubusercontent.com/u/11819686?v=3","gravatar_id":"","url":"https://api.github.com/users/flore77","html_url":"https://github.com/flore77","followers_url":"https://api.github.com/users/flore77/followers","following_url":"https://api.github.com/users/flore77/following{/other_user}","gists_url":"https://api.github.com/users/flore77/gists{/gist_id}","starred_url":"https://api.github.com/users/flore77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flore77/subscriptions","organizations_url":"https://api.github.com/users/flore77/orgs","repos_url":"https://api.github.com/users/flore77/repos","events_url":"https://api.github.com/users/flore77/events{/privacy}","received_events_url":"https://api.github.com/users/flore77/received_events","type":"User","site_admin":false},"body":"I have added the `createBuffer` method that we have spoke about. please take a look @SevInf. thanks\r\n\r\nfixes #5 ","created_at":"2015-08-04T12:02:39Z","updated_at":"2015-08-06T13:26:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38c62cd1ce1f3a79d4c9bd859fde534e0d8e8e8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6/commits","review_comments_url":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6/comments","review_comment_url":"https://api.github.com/repos/gemini-testing/looks-same/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gemini-testing/looks-same/issues/6/comments","statuses_url":"https://api.github.com/repos/gemini-testing/looks-same/statuses/38bb3640aa01a48a0a78c606591a41a1c1ed3837","head":{"label":"flore77:master","ref":"master","sha":"38bb3640aa01a48a0a78c606591a41a1c1ed3837","user":{"login":"flore77","id":11819686,"avatar_url":"https://avatars.githubusercontent.com/u/11819686?v=3","gravatar_id":"","url":"https://api.github.com/users/flore77","html_url":"https://github.com/flore77","followers_url":"https://api.github.com/users/flore77/followers","following_url":"https://api.github.com/users/flore77/following{/other_user}","gists_url":"https://api.github.com/users/flore77/gists{/gist_id}","starred_url":"https://api.github.com/users/flore77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flore77/subscriptions","organizations_url":"https://api.github.com/users/flore77/orgs","repos_url":"https://api.github.com/users/flore77/repos","events_url":"https://api.github.com/users/flore77/events{/privacy}","received_events_url":"https://api.github.com/users/flore77/received_events","type":"User","site_admin":false},"repo":{"id":39897093,"name":"looks-same","full_name":"flore77/looks-same","owner":{"login":"flore77","id":11819686,"avatar_url":"https://avatars.githubusercontent.com/u/11819686?v=3","gravatar_id":"","url":"https://api.github.com/users/flore77","html_url":"https://github.com/flore77","followers_url":"https://api.github.com/users/flore77/followers","following_url":"https://api.github.com/users/flore77/following{/other_user}","gists_url":"https://api.github.com/users/flore77/gists{/gist_id}","starred_url":"https://api.github.com/users/flore77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flore77/subscriptions","organizations_url":"https://api.github.com/users/flore77/orgs","repos_url":"https://api.github.com/users/flore77/repos","events_url":"https://api.github.com/users/flore77/events{/privacy}","received_events_url":"https://api.github.com/users/flore77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flore77/looks-same","description":"Node.js library for comparing images","fork":true,"url":"https://api.github.com/repos/flore77/looks-same","forks_url":"https://api.github.com/repos/flore77/looks-same/forks","keys_url":"https://api.github.com/repos/flore77/looks-same/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flore77/looks-same/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flore77/looks-same/teams","hooks_url":"https://api.github.com/repos/flore77/looks-same/hooks","issue_events_url":"https://api.github.com/repos/flore77/looks-same/issues/events{/number}","events_url":"https://api.github.com/repos/flore77/looks-same/events","assignees_url":"https://api.github.com/repos/flore77/looks-same/assignees{/user}","branches_url":"https://api.github.com/repos/flore77/looks-same/branches{/branch}","tags_url":"https://api.github.com/repos/flore77/looks-same/tags","blobs_url":"https://api.github.com/repos/flore77/looks-same/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flore77/looks-same/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flore77/looks-same/git/refs{/sha}","trees_url":"https://api.github.com/repos/flore77/looks-same/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flore77/looks-same/statuses/{sha}","languages_url":"https://api.github.com/repos/flore77/looks-same/languages","stargazers_url":"https://api.github.com/repos/flore77/looks-same/stargazers","contributors_url":"https://api.github.com/repos/flore77/looks-same/contributors","subscribers_url":"https://api.github.com/repos/flore77/looks-same/subscribers","subscription_url":"https://api.github.com/repos/flore77/looks-same/subscription","commits_url":"https://api.github.com/repos/flore77/looks-same/commits{/sha}","git_commits_url":"https://api.github.com/repos/flore77/looks-same/git/commits{/sha}","comments_url":"https://api.github.com/repos/flore77/looks-same/comments{/number}","issue_comment_url":"https://api.github.com/repos/flore77/looks-same/issues/comments{/number}","contents_url":"https://api.github.com/repos/flore77/looks-same/contents/{+path}","compare_url":"https://api.github.com/repos/flore77/looks-same/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flore77/looks-same/merges","archive_url":"https://api.github.com/repos/flore77/looks-same/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flore77/looks-same/downloads","issues_url":"https://api.github.com/repos/flore77/looks-same/issues{/number}","pulls_url":"https://api.github.com/repos/flore77/looks-same/pulls{/number}","milestones_url":"https://api.github.com/repos/flore77/looks-same/milestones{/number}","notifications_url":"https://api.github.com/repos/flore77/looks-same/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flore77/looks-same/labels{/name}","releases_url":"https://api.github.com/repos/flore77/looks-same/releases{/id}","created_at":"2015-07-29T14:12:41Z","updated_at":"2015-07-29T14:12:41Z","pushed_at":"2015-08-04T11:58:00Z","git_url":"git://github.com/flore77/looks-same.git","ssh_url":"git@github.com:flore77/looks-same.git","clone_url":"https://github.com/flore77/looks-same.git","svn_url":"https://github.com/flore77/looks-same","homepage":"","size":482,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"gemini-testing:master","ref":"master","sha":"7594ef12556ff80e62230e48186855e5ff26bb0b","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":23228650,"name":"looks-same","full_name":"gemini-testing/looks-same","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/looks-same","description":"Node.js library for comparing images","fork":false,"url":"https://api.github.com/repos/gemini-testing/looks-same","forks_url":"https://api.github.com/repos/gemini-testing/looks-same/forks","keys_url":"https://api.github.com/repos/gemini-testing/looks-same/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/looks-same/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/looks-same/teams","hooks_url":"https://api.github.com/repos/gemini-testing/looks-same/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/looks-same/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/looks-same/events","assignees_url":"https://api.github.com/repos/gemini-testing/looks-same/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/looks-same/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/looks-same/tags","blobs_url":"https://api.github.com/repos/gemini-testing/looks-same/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/looks-same/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/looks-same/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/looks-same/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/looks-same/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/looks-same/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/looks-same/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/looks-same/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/looks-same/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/looks-same/subscription","commits_url":"https://api.github.com/repos/gemini-testing/looks-same/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/looks-same/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/looks-same/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/looks-same/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/looks-same/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/looks-same/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/looks-same/merges","archive_url":"https://api.github.com/repos/gemini-testing/looks-same/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/looks-same/downloads","issues_url":"https://api.github.com/repos/gemini-testing/looks-same/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/looks-same/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/looks-same/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/looks-same/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/looks-same/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/looks-same/releases{/id}","created_at":"2014-08-22T14:45:09Z","updated_at":"2015-06-24T09:38:25Z","pushed_at":"2015-08-04T12:02:39Z","git_url":"git://github.com/gemini-testing/looks-same.git","ssh_url":"git@github.com:gemini-testing/looks-same.git","clone_url":"https://github.com/gemini-testing/looks-same.git","svn_url":"https://github.com/gemini-testing/looks-same","homepage":"","size":633,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6"},"html":{"href":"https://github.com/gemini-testing/looks-same/pull/6"},"issue":{"href":"https://api.github.com/repos/gemini-testing/looks-same/issues/6"},"comments":{"href":"https://api.github.com/repos/gemini-testing/looks-same/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/gemini-testing/looks-same/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gemini-testing/looks-same/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/gemini-testing/looks-same/statuses/38bb3640aa01a48a0a78c606591a41a1c1ed3837"}}}}