{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/cp-file/pulls/comments/26334198","id":26334198,"diff_hunk":"@@ -1 +1,3 @@\n node_modules\n+tmp","path":".gitignore","position":2,"original_position":2,"commit_id":"54fd87781f38e3e59138cb232b2a97b48f3ca131","original_commit_id":"54fd87781f38e3e59138cb232b2a97b48f3ca131","user":{"login":"schnittstabil","id":6059032,"avatar_url":"https://avatars.githubusercontent.com/u/6059032?v=3","gravatar_id":"","url":"https://api.github.com/users/schnittstabil","html_url":"https://github.com/schnittstabil","followers_url":"https://api.github.com/users/schnittstabil/followers","following_url":"https://api.github.com/users/schnittstabil/following{/other_user}","gists_url":"https://api.github.com/users/schnittstabil/gists{/gist_id}","starred_url":"https://api.github.com/users/schnittstabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnittstabil/subscriptions","organizations_url":"https://api.github.com/users/schnittstabil/orgs","repos_url":"https://api.github.com/users/schnittstabil/repos","events_url":"https://api.github.com/users/schnittstabil/events{/privacy}","received_events_url":"https://api.github.com/users/schnittstabil/received_events","type":"User","site_admin":false},"body":"I've substituted  `afterEach` with `beforeEach` in `test.js`:\r\n```diff\r\n- afterEach(function () {\r\n-\ttry {\r\n-\t\tfs.unlinkSync('tmp');\r\n-\t} catch (err) {}\r\n+beforeEach(function () {\r\n```\r\nThis allows one to run `mocha --bail` and examine the files created by a failing test. So I think ignoring them would be useful.","created_at":"2015-03-12T19:07:36Z","updated_at":"2015-03-12T19:07:36Z","html_url":"https://github.com/sindresorhus/cp-file/pull/5#discussion_r26334198","pull_request_url":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/cp-file/pulls/comments/26334198"},"html":{"href":"https://github.com/sindresorhus/cp-file/pull/5#discussion_r26334198"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5","id":31040483,"html_url":"https://github.com/sindresorhus/cp-file/pull/5","diff_url":"https://github.com/sindresorhus/cp-file/pull/5.diff","patch_url":"https://github.com/sindresorhus/cp-file/pull/5.patch","issue_url":"https://api.github.com/repos/sindresorhus/cp-file/issues/5","number":5,"state":"open","locked":false,"title":"do not create dest on unreadable src","user":{"login":"schnittstabil","id":6059032,"avatar_url":"https://avatars.githubusercontent.com/u/6059032?v=3","gravatar_id":"","url":"https://api.github.com/users/schnittstabil","html_url":"https://github.com/schnittstabil","followers_url":"https://api.github.com/users/schnittstabil/followers","following_url":"https://api.github.com/users/schnittstabil/following{/other_user}","gists_url":"https://api.github.com/users/schnittstabil/gists{/gist_id}","starred_url":"https://api.github.com/users/schnittstabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnittstabil/subscriptions","organizations_url":"https://api.github.com/users/schnittstabil/orgs","repos_url":"https://api.github.com/users/schnittstabil/repos","events_url":"https://api.github.com/users/schnittstabil/events{/privacy}","received_events_url":"https://api.github.com/users/schnittstabil/received_events","type":"User","site_admin":false},"body":"IMO that would fix the second issue of https://github.com/sindresorhus/cp-file/pull/4#issuecomment-75506946.\r\n@kevva: what do you think?","created_at":"2015-03-12T14:28:53Z","updated_at":"2015-03-12T19:07:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9bc85d7bf2a487321a547a1dd09d04fbd84a1b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/cp-file/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/cp-file/issues/5/comments","statuses_url":"https://api.github.com/repos/sindresorhus/cp-file/statuses/54fd87781f38e3e59138cb232b2a97b48f3ca131","head":{"label":"schnittstabil:improve-error-handling","ref":"improve-error-handling","sha":"54fd87781f38e3e59138cb232b2a97b48f3ca131","user":{"login":"schnittstabil","id":6059032,"avatar_url":"https://avatars.githubusercontent.com/u/6059032?v=3","gravatar_id":"","url":"https://api.github.com/users/schnittstabil","html_url":"https://github.com/schnittstabil","followers_url":"https://api.github.com/users/schnittstabil/followers","following_url":"https://api.github.com/users/schnittstabil/following{/other_user}","gists_url":"https://api.github.com/users/schnittstabil/gists{/gist_id}","starred_url":"https://api.github.com/users/schnittstabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnittstabil/subscriptions","organizations_url":"https://api.github.com/users/schnittstabil/orgs","repos_url":"https://api.github.com/users/schnittstabil/repos","events_url":"https://api.github.com/users/schnittstabil/events{/privacy}","received_events_url":"https://api.github.com/users/schnittstabil/received_events","type":"User","site_admin":false},"repo":{"id":29309989,"name":"cp-file","full_name":"schnittstabil/cp-file","owner":{"login":"schnittstabil","id":6059032,"avatar_url":"https://avatars.githubusercontent.com/u/6059032?v=3","gravatar_id":"","url":"https://api.github.com/users/schnittstabil","html_url":"https://github.com/schnittstabil","followers_url":"https://api.github.com/users/schnittstabil/followers","following_url":"https://api.github.com/users/schnittstabil/following{/other_user}","gists_url":"https://api.github.com/users/schnittstabil/gists{/gist_id}","starred_url":"https://api.github.com/users/schnittstabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnittstabil/subscriptions","organizations_url":"https://api.github.com/users/schnittstabil/orgs","repos_url":"https://api.github.com/users/schnittstabil/repos","events_url":"https://api.github.com/users/schnittstabil/events{/privacy}","received_events_url":"https://api.github.com/users/schnittstabil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schnittstabil/cp-file","description":"Copy a file","fork":true,"url":"https://api.github.com/repos/schnittstabil/cp-file","forks_url":"https://api.github.com/repos/schnittstabil/cp-file/forks","keys_url":"https://api.github.com/repos/schnittstabil/cp-file/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schnittstabil/cp-file/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schnittstabil/cp-file/teams","hooks_url":"https://api.github.com/repos/schnittstabil/cp-file/hooks","issue_events_url":"https://api.github.com/repos/schnittstabil/cp-file/issues/events{/number}","events_url":"https://api.github.com/repos/schnittstabil/cp-file/events","assignees_url":"https://api.github.com/repos/schnittstabil/cp-file/assignees{/user}","branches_url":"https://api.github.com/repos/schnittstabil/cp-file/branches{/branch}","tags_url":"https://api.github.com/repos/schnittstabil/cp-file/tags","blobs_url":"https://api.github.com/repos/schnittstabil/cp-file/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schnittstabil/cp-file/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schnittstabil/cp-file/git/refs{/sha}","trees_url":"https://api.github.com/repos/schnittstabil/cp-file/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schnittstabil/cp-file/statuses/{sha}","languages_url":"https://api.github.com/repos/schnittstabil/cp-file/languages","stargazers_url":"https://api.github.com/repos/schnittstabil/cp-file/stargazers","contributors_url":"https://api.github.com/repos/schnittstabil/cp-file/contributors","subscribers_url":"https://api.github.com/repos/schnittstabil/cp-file/subscribers","subscription_url":"https://api.github.com/repos/schnittstabil/cp-file/subscription","commits_url":"https://api.github.com/repos/schnittstabil/cp-file/commits{/sha}","git_commits_url":"https://api.github.com/repos/schnittstabil/cp-file/git/commits{/sha}","comments_url":"https://api.github.com/repos/schnittstabil/cp-file/comments{/number}","issue_comment_url":"https://api.github.com/repos/schnittstabil/cp-file/issues/comments{/number}","contents_url":"https://api.github.com/repos/schnittstabil/cp-file/contents/{+path}","compare_url":"https://api.github.com/repos/schnittstabil/cp-file/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schnittstabil/cp-file/merges","archive_url":"https://api.github.com/repos/schnittstabil/cp-file/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schnittstabil/cp-file/downloads","issues_url":"https://api.github.com/repos/schnittstabil/cp-file/issues{/number}","pulls_url":"https://api.github.com/repos/schnittstabil/cp-file/pulls{/number}","milestones_url":"https://api.github.com/repos/schnittstabil/cp-file/milestones{/number}","notifications_url":"https://api.github.com/repos/schnittstabil/cp-file/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schnittstabil/cp-file/labels{/name}","releases_url":"https://api.github.com/repos/schnittstabil/cp-file/releases{/id}","created_at":"2015-01-15T17:51:48Z","updated_at":"2015-02-21T15:01:45Z","pushed_at":"2015-03-12T18:17:50Z","git_url":"git://github.com/schnittstabil/cp-file.git","ssh_url":"git@github.com:schnittstabil/cp-file.git","clone_url":"https://github.com/schnittstabil/cp-file.git","svn_url":"https://github.com/schnittstabil/cp-file","homepage":null,"size":171,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"ea865ad5d351197e4d096efd3edc8157b97e1efa","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":21312037,"name":"cp-file","full_name":"sindresorhus/cp-file","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/cp-file","description":"Copy a file","fork":false,"url":"https://api.github.com/repos/sindresorhus/cp-file","forks_url":"https://api.github.com/repos/sindresorhus/cp-file/forks","keys_url":"https://api.github.com/repos/sindresorhus/cp-file/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/cp-file/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/cp-file/teams","hooks_url":"https://api.github.com/repos/sindresorhus/cp-file/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/cp-file/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/cp-file/events","assignees_url":"https://api.github.com/repos/sindresorhus/cp-file/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/cp-file/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/cp-file/tags","blobs_url":"https://api.github.com/repos/sindresorhus/cp-file/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/cp-file/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/cp-file/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/cp-file/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/cp-file/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/cp-file/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/cp-file/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/cp-file/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/cp-file/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/cp-file/subscription","commits_url":"https://api.github.com/repos/sindresorhus/cp-file/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/cp-file/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/cp-file/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/cp-file/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/cp-file/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/cp-file/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/cp-file/merges","archive_url":"https://api.github.com/repos/sindresorhus/cp-file/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/cp-file/downloads","issues_url":"https://api.github.com/repos/sindresorhus/cp-file/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/cp-file/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/cp-file/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/cp-file/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/cp-file/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/cp-file/releases{/id}","created_at":"2014-06-28T22:16:19Z","updated_at":"2015-03-12T17:52:47Z","pushed_at":"2015-02-08T11:25:27Z","git_url":"git://github.com/sindresorhus/cp-file.git","ssh_url":"git@github.com:sindresorhus/cp-file.git","clone_url":"https://github.com/sindresorhus/cp-file.git","svn_url":"https://github.com/sindresorhus/cp-file","homepage":null,"size":245,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5"},"html":{"href":"https://github.com/sindresorhus/cp-file/pull/5"},"issue":{"href":"https://api.github.com/repos/sindresorhus/cp-file/issues/5"},"comments":{"href":"https://api.github.com/repos/sindresorhus/cp-file/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/cp-file/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/cp-file/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/cp-file/statuses/54fd87781f38e3e59138cb232b2a97b48f3ca131"}}}}