{"action":"created","comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments/73638816","id":73638816,"diff_hunk":"@@ -46,9 +48,14 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {\n   // Copy the files for the user\n   fs.copySync(path.join(ownPath, 'template'), appPath);\n \n-  // Rename gitignore after the fact to prevent npm from renaming it to .npmignore\n-  // See: https://github.com/npm/npm/issues/1862\n-  fs.move(path.join(appPath, 'gitignore'), path.join(appPath, '.gitignore'), []);\n+  var gitignoreExists = pathExists.sync(path.join(appPath, '.gitignore'));","path":"scripts/init.js","position":16,"original_position":16,"commit_id":"66eb35f9e697b47a0f2d6f1a85b943aca5799d91","original_commit_id":"66eb35f9e697b47a0f2d6f1a85b943aca5799d91","user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"body":"This is why I originally wanted to only support the non existing folder case. Now we get in this situation where we have some files that already exist and need to be somehow merged. We can no longer be sure that all the configs that we have all work well together.\r\n\r\nCould we check all the files that would be copied over and if any of them is already there then abort.\r\n\r\nHonestly, i'm not sure it's worth the complexity, but I could be convinced otherwise","created_at":"2016-08-05T03:51:35Z","updated_at":"2016-08-05T03:51:35Z","html_url":"https://github.com/facebookincubator/create-react-app/pull/368#discussion_r73638816","pull_request_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368","_links":{"self":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments/73638816"},"html":{"href":"https://github.com/facebookincubator/create-react-app/pull/368#discussion_r73638816"},"pull_request":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368"}}},"pull_request":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368","id":80175577,"html_url":"https://github.com/facebookincubator/create-react-app/pull/368","diff_url":"https://github.com/facebookincubator/create-react-app/pull/368.diff","patch_url":"https://github.com/facebookincubator/create-react-app/pull/368.patch","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/368","number":368,"state":"open","locked":false,"title":"Creating a new app in the current directory","user":{"login":"torifat","id":208544,"avatar_url":"https://avatars.githubusercontent.com/u/208544?v=3","gravatar_id":"","url":"https://api.github.com/users/torifat","html_url":"https://github.com/torifat","followers_url":"https://api.github.com/users/torifat/followers","following_url":"https://api.github.com/users/torifat/following{/other_user}","gists_url":"https://api.github.com/users/torifat/gists{/gist_id}","starred_url":"https://api.github.com/users/torifat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torifat/subscriptions","organizations_url":"https://api.github.com/users/torifat/orgs","repos_url":"https://api.github.com/users/torifat/repos","events_url":"https://api.github.com/users/torifat/events{/privacy}","received_events_url":"https://api.github.com/users/torifat/received_events","type":"User","site_admin":false},"body":"This fixes #334 ","created_at":"2016-08-05T01:24:22Z","updated_at":"2016-08-05T03:51:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d976dbf96eb3d4e5f483864b513f1901bf79ecb6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368/commits","review_comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368/comments","review_comment_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/368/comments","statuses_url":"https://api.github.com/repos/facebookincubator/create-react-app/statuses/66eb35f9e697b47a0f2d6f1a85b943aca5799d91","head":{"label":"torifat:feature/init-in-existing-dir","ref":"feature/init-in-existing-dir","sha":"66eb35f9e697b47a0f2d6f1a85b943aca5799d91","user":{"login":"torifat","id":208544,"avatar_url":"https://avatars.githubusercontent.com/u/208544?v=3","gravatar_id":"","url":"https://api.github.com/users/torifat","html_url":"https://github.com/torifat","followers_url":"https://api.github.com/users/torifat/followers","following_url":"https://api.github.com/users/torifat/following{/other_user}","gists_url":"https://api.github.com/users/torifat/gists{/gist_id}","starred_url":"https://api.github.com/users/torifat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torifat/subscriptions","organizations_url":"https://api.github.com/users/torifat/orgs","repos_url":"https://api.github.com/users/torifat/repos","events_url":"https://api.github.com/users/torifat/events{/privacy}","received_events_url":"https://api.github.com/users/torifat/received_events","type":"User","site_admin":false},"repo":{"id":64780061,"name":"create-react-app","full_name":"torifat/create-react-app","owner":{"login":"torifat","id":208544,"avatar_url":"https://avatars.githubusercontent.com/u/208544?v=3","gravatar_id":"","url":"https://api.github.com/users/torifat","html_url":"https://github.com/torifat","followers_url":"https://api.github.com/users/torifat/followers","following_url":"https://api.github.com/users/torifat/following{/other_user}","gists_url":"https://api.github.com/users/torifat/gists{/gist_id}","starred_url":"https://api.github.com/users/torifat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torifat/subscriptions","organizations_url":"https://api.github.com/users/torifat/orgs","repos_url":"https://api.github.com/users/torifat/repos","events_url":"https://api.github.com/users/torifat/events{/privacy}","received_events_url":"https://api.github.com/users/torifat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/torifat/create-react-app","description":"Create React apps with no build configuration.","fork":true,"url":"https://api.github.com/repos/torifat/create-react-app","forks_url":"https://api.github.com/repos/torifat/create-react-app/forks","keys_url":"https://api.github.com/repos/torifat/create-react-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/torifat/create-react-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/torifat/create-react-app/teams","hooks_url":"https://api.github.com/repos/torifat/create-react-app/hooks","issue_events_url":"https://api.github.com/repos/torifat/create-react-app/issues/events{/number}","events_url":"https://api.github.com/repos/torifat/create-react-app/events","assignees_url":"https://api.github.com/repos/torifat/create-react-app/assignees{/user}","branches_url":"https://api.github.com/repos/torifat/create-react-app/branches{/branch}","tags_url":"https://api.github.com/repos/torifat/create-react-app/tags","blobs_url":"https://api.github.com/repos/torifat/create-react-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/torifat/create-react-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/torifat/create-react-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/torifat/create-react-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/torifat/create-react-app/statuses/{sha}","languages_url":"https://api.github.com/repos/torifat/create-react-app/languages","stargazers_url":"https://api.github.com/repos/torifat/create-react-app/stargazers","contributors_url":"https://api.github.com/repos/torifat/create-react-app/contributors","subscribers_url":"https://api.github.com/repos/torifat/create-react-app/subscribers","subscription_url":"https://api.github.com/repos/torifat/create-react-app/subscription","commits_url":"https://api.github.com/repos/torifat/create-react-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/torifat/create-react-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/torifat/create-react-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/torifat/create-react-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/torifat/create-react-app/contents/{+path}","compare_url":"https://api.github.com/repos/torifat/create-react-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/torifat/create-react-app/merges","archive_url":"https://api.github.com/repos/torifat/create-react-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/torifat/create-react-app/downloads","issues_url":"https://api.github.com/repos/torifat/create-react-app/issues{/number}","pulls_url":"https://api.github.com/repos/torifat/create-react-app/pulls{/number}","milestones_url":"https://api.github.com/repos/torifat/create-react-app/milestones{/number}","notifications_url":"https://api.github.com/repos/torifat/create-react-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/torifat/create-react-app/labels{/name}","releases_url":"https://api.github.com/repos/torifat/create-react-app/releases{/id}","deployments_url":"https://api.github.com/repos/torifat/create-react-app/deployments","created_at":"2016-08-02T18:01:21Z","updated_at":"2016-08-02T18:01:23Z","pushed_at":"2016-08-05T01:24:05Z","git_url":"git://github.com/torifat/create-react-app.git","ssh_url":"git@github.com:torifat/create-react-app.git","clone_url":"https://github.com/torifat/create-react-app.git","svn_url":"https://github.com/torifat/create-react-app","homepage":null,"size":451,"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":"facebookincubator:master","ref":"master","sha":"db4c6f666b8d909b7cacb8b7ab7bd33c218687c0","user":{"login":"facebookincubator","id":19538647,"avatar_url":"https://avatars.githubusercontent.com/u/19538647?v=3","gravatar_id":"","url":"https://api.github.com/users/facebookincubator","html_url":"https://github.com/facebookincubator","followers_url":"https://api.github.com/users/facebookincubator/followers","following_url":"https://api.github.com/users/facebookincubator/following{/other_user}","gists_url":"https://api.github.com/users/facebookincubator/gists{/gist_id}","starred_url":"https://api.github.com/users/facebookincubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebookincubator/subscriptions","organizations_url":"https://api.github.com/users/facebookincubator/orgs","repos_url":"https://api.github.com/users/facebookincubator/repos","events_url":"https://api.github.com/users/facebookincubator/events{/privacy}","received_events_url":"https://api.github.com/users/facebookincubator/received_events","type":"Organization","site_admin":false},"repo":{"id":63537249,"name":"create-react-app","full_name":"facebookincubator/create-react-app","owner":{"login":"facebookincubator","id":19538647,"avatar_url":"https://avatars.githubusercontent.com/u/19538647?v=3","gravatar_id":"","url":"https://api.github.com/users/facebookincubator","html_url":"https://github.com/facebookincubator","followers_url":"https://api.github.com/users/facebookincubator/followers","following_url":"https://api.github.com/users/facebookincubator/following{/other_user}","gists_url":"https://api.github.com/users/facebookincubator/gists{/gist_id}","starred_url":"https://api.github.com/users/facebookincubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebookincubator/subscriptions","organizations_url":"https://api.github.com/users/facebookincubator/orgs","repos_url":"https://api.github.com/users/facebookincubator/repos","events_url":"https://api.github.com/users/facebookincubator/events{/privacy}","received_events_url":"https://api.github.com/users/facebookincubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebookincubator/create-react-app","description":"Create React apps with no build configuration.","fork":false,"url":"https://api.github.com/repos/facebookincubator/create-react-app","forks_url":"https://api.github.com/repos/facebookincubator/create-react-app/forks","keys_url":"https://api.github.com/repos/facebookincubator/create-react-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebookincubator/create-react-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebookincubator/create-react-app/teams","hooks_url":"https://api.github.com/repos/facebookincubator/create-react-app/hooks","issue_events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/events{/number}","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/events","assignees_url":"https://api.github.com/repos/facebookincubator/create-react-app/assignees{/user}","branches_url":"https://api.github.com/repos/facebookincubator/create-react-app/branches{/branch}","tags_url":"https://api.github.com/repos/facebookincubator/create-react-app/tags","blobs_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebookincubator/create-react-app/statuses/{sha}","languages_url":"https://api.github.com/repos/facebookincubator/create-react-app/languages","stargazers_url":"https://api.github.com/repos/facebookincubator/create-react-app/stargazers","contributors_url":"https://api.github.com/repos/facebookincubator/create-react-app/contributors","subscribers_url":"https://api.github.com/repos/facebookincubator/create-react-app/subscribers","subscription_url":"https://api.github.com/repos/facebookincubator/create-react-app/subscription","commits_url":"https://api.github.com/repos/facebookincubator/create-react-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebookincubator/create-react-app/contents/{+path}","compare_url":"https://api.github.com/repos/facebookincubator/create-react-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebookincubator/create-react-app/merges","archive_url":"https://api.github.com/repos/facebookincubator/create-react-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebookincubator/create-react-app/downloads","issues_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues{/number}","pulls_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls{/number}","milestones_url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones{/number}","notifications_url":"https://api.github.com/repos/facebookincubator/create-react-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/labels{/name}","releases_url":"https://api.github.com/repos/facebookincubator/create-react-app/releases{/id}","deployments_url":"https://api.github.com/repos/facebookincubator/create-react-app/deployments","created_at":"2016-07-17T14:55:11Z","updated_at":"2016-08-05T03:44:25Z","pushed_at":"2016-08-05T02:48:20Z","git_url":"git://github.com/facebookincubator/create-react-app.git","ssh_url":"git@github.com:facebookincubator/create-react-app.git","clone_url":"https://github.com/facebookincubator/create-react-app.git","svn_url":"https://github.com/facebookincubator/create-react-app","homepage":null,"size":628,"stargazers_count":7756,"watchers_count":7756,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":420,"mirror_url":null,"open_issues_count":57,"forks":420,"open_issues":57,"watchers":7756,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368"},"html":{"href":"https://github.com/facebookincubator/create-react-app/pull/368"},"issue":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/issues/368"},"comments":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/issues/368/comments"},"review_comments":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368/comments"},"review_comment":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/368/commits"},"statuses":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/statuses/66eb35f9e697b47a0f2d6f1a85b943aca5799d91"}}}}
{"actor":{"display_login":"vjeux"}}