{"action":"opened","number":21169,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/21169","id":216313620,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MzEzNjIw","html_url":"https://github.com/facebook/react-native/pull/21169","diff_url":"https://github.com/facebook/react-native/pull/21169.diff","patch_url":"https://github.com/facebook/react-native/pull/21169.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/21169","number":21169,"state":"open","locked":false,"title":"add option to init current directory","user":{"login":"ShaMan123","id":34343793,"node_id":"MDQ6VXNlcjM0MzQzNzkz","avatar_url":"https://avatars0.githubusercontent.com/u/34343793?v=4","gravatar_id":"","url":"https://api.github.com/users/ShaMan123","html_url":"https://github.com/ShaMan123","followers_url":"https://api.github.com/users/ShaMan123/followers","following_url":"https://api.github.com/users/ShaMan123/following{/other_user}","gists_url":"https://api.github.com/users/ShaMan123/gists{/gist_id}","starred_url":"https://api.github.com/users/ShaMan123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShaMan123/subscriptions","organizations_url":"https://api.github.com/users/ShaMan123/orgs","repos_url":"https://api.github.com/users/ShaMan123/repos","events_url":"https://api.github.com/users/ShaMan123/events{/privacy}","received_events_url":"https://api.github.com/users/ShaMan123/received_events","type":"User","site_admin":false},"body":"### I came across a need to run `react-native init` on an existing folder.\r\n\r\nUse case:\r\n----------\r\nPulling a repo from git results in a new directory.\r\nRunning `react-native init myApp` result in a new directory.\r\n**If I pull the repo from git I can't init it and vise-versa**.\r\nThings get messy. Git freaks out or react-native doesn't work.\r\n\r\nThis makes it hard to work on react-native projects from different machines and/or collaborate with others.\r\nI didn't find a proper workaround, AFAIK there isn't a simple one.\r\n\r\nTest Plan:\r\n----------\r\nI ran the command with the new option several times:\r\n\r\n```\r\nreact-native init\r\nreact-native run-android\r\n\r\n```\r\n\r\nIt worked!\r\n\r\nRelease Notes:\r\n--------------\r\n\r\n[CLI] [FEATURE] [react-native-cli/index.js] - CLI add option to init react-native in the current directory by simply running `react-native init`\r\n<!--\r\n  **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**\r\n\r\n    CATEGORY\r\n  [----------]      TYPE\r\n  [ CLI      ] [-------------]    LOCATION\r\n  [ DOCS     ] [ BREAKING    ] [-------------]\r\n  [ GENERAL  ] [ BUGFIX      ] [ {Component} ]\r\n  [ INTERNAL ] [ ENHANCEMENT ] [ {Filename}  ]\r\n  [ IOS      ] [ FEATURE     ] [ {Directory} ]   |-----------|\r\n  [ ANDROID  ] [ MINOR       ] [ {Framework} ] - | {Message} |\r\n  [----------] [-------------] [-------------]   |-----------|\r\n\r\n EXAMPLES:\r\n\r\n [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things\r\n [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput\r\n [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with\r\n [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word\r\n [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position\r\n [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see\r\n-->\r\n","created_at":"2018-09-18T13:45:31Z","updated_at":"2018-09-18T13:45:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/21169/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/21169/comments","review_comment_url":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/21169/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/d90b1ad3cd3ca70aff2f1238aafc4bc402a515e3","head":{"label":"ShaMan123:patch-1","ref":"patch-1","sha":"d90b1ad3cd3ca70aff2f1238aafc4bc402a515e3","user":{"login":"ShaMan123","id":34343793,"node_id":"MDQ6VXNlcjM0MzQzNzkz","avatar_url":"https://avatars0.githubusercontent.com/u/34343793?v=4","gravatar_id":"","url":"https://api.github.com/users/ShaMan123","html_url":"https://github.com/ShaMan123","followers_url":"https://api.github.com/users/ShaMan123/followers","following_url":"https://api.github.com/users/ShaMan123/following{/other_user}","gists_url":"https://api.github.com/users/ShaMan123/gists{/gist_id}","starred_url":"https://api.github.com/users/ShaMan123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShaMan123/subscriptions","organizations_url":"https://api.github.com/users/ShaMan123/orgs","repos_url":"https://api.github.com/users/ShaMan123/repos","events_url":"https://api.github.com/users/ShaMan123/events{/privacy}","received_events_url":"https://api.github.com/users/ShaMan123/received_events","type":"User","site_admin":false},"repo":{"id":137725034,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MjUwMzQ=","name":"react-native","full_name":"ShaMan123/react-native","private":false,"owner":{"login":"ShaMan123","id":34343793,"node_id":"MDQ6VXNlcjM0MzQzNzkz","avatar_url":"https://avatars0.githubusercontent.com/u/34343793?v=4","gravatar_id":"","url":"https://api.github.com/users/ShaMan123","html_url":"https://github.com/ShaMan123","followers_url":"https://api.github.com/users/ShaMan123/followers","following_url":"https://api.github.com/users/ShaMan123/following{/other_user}","gists_url":"https://api.github.com/users/ShaMan123/gists{/gist_id}","starred_url":"https://api.github.com/users/ShaMan123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShaMan123/subscriptions","organizations_url":"https://api.github.com/users/ShaMan123/orgs","repos_url":"https://api.github.com/users/ShaMan123/repos","events_url":"https://api.github.com/users/ShaMan123/events{/privacy}","received_events_url":"https://api.github.com/users/ShaMan123/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ShaMan123/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/ShaMan123/react-native","forks_url":"https://api.github.com/repos/ShaMan123/react-native/forks","keys_url":"https://api.github.com/repos/ShaMan123/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShaMan123/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShaMan123/react-native/teams","hooks_url":"https://api.github.com/repos/ShaMan123/react-native/hooks","issue_events_url":"https://api.github.com/repos/ShaMan123/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/ShaMan123/react-native/events","assignees_url":"https://api.github.com/repos/ShaMan123/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/ShaMan123/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/ShaMan123/react-native/tags","blobs_url":"https://api.github.com/repos/ShaMan123/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShaMan123/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShaMan123/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShaMan123/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShaMan123/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/ShaMan123/react-native/languages","stargazers_url":"https://api.github.com/repos/ShaMan123/react-native/stargazers","contributors_url":"https://api.github.com/repos/ShaMan123/react-native/contributors","subscribers_url":"https://api.github.com/repos/ShaMan123/react-native/subscribers","subscription_url":"https://api.github.com/repos/ShaMan123/react-native/subscription","commits_url":"https://api.github.com/repos/ShaMan123/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShaMan123/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShaMan123/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShaMan123/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShaMan123/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/ShaMan123/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShaMan123/react-native/merges","archive_url":"https://api.github.com/repos/ShaMan123/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShaMan123/react-native/downloads","issues_url":"https://api.github.com/repos/ShaMan123/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/ShaMan123/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/ShaMan123/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/ShaMan123/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShaMan123/react-native/labels{/name}","releases_url":"https://api.github.com/repos/ShaMan123/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/ShaMan123/react-native/deployments","created_at":"2018-06-18T08:03:47Z","updated_at":"2018-08-17T20:58:09Z","pushed_at":"2018-09-18T13:26:01Z","git_url":"git://github.com/ShaMan123/react-native.git","ssh_url":"git@github.com:ShaMan123/react-native.git","clone_url":"https://github.com/ShaMan123/react-native.git","svn_url":"https://github.com/ShaMan123/react-native","homepage":"https://facebook.github.io/react-native/","size":227799,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"c58fb3b73a08af83287793b745371d0defce1f8d","user":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29028775,"node_id":"MDEwOlJlcG9zaXRvcnkyOTAyODc3NQ==","name":"react-native","full_name":"facebook/react-native","private":false,"owner":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/facebook/react-native","description":"A framework for building native apps with React.","fork":false,"url":"https://api.github.com/repos/facebook/react-native","forks_url":"https://api.github.com/repos/facebook/react-native/forks","keys_url":"https://api.github.com/repos/facebook/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react-native/teams","hooks_url":"https://api.github.com/repos/facebook/react-native/hooks","issue_events_url":"https://api.github.com/repos/facebook/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react-native/events","assignees_url":"https://api.github.com/repos/facebook/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react-native/tags","blobs_url":"https://api.github.com/repos/facebook/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react-native/languages","stargazers_url":"https://api.github.com/repos/facebook/react-native/stargazers","contributors_url":"https://api.github.com/repos/facebook/react-native/contributors","subscribers_url":"https://api.github.com/repos/facebook/react-native/subscribers","subscription_url":"https://api.github.com/repos/facebook/react-native/subscription","commits_url":"https://api.github.com/repos/facebook/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react-native/merges","archive_url":"https://api.github.com/repos/facebook/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react-native/downloads","issues_url":"https://api.github.com/repos/facebook/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react-native/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/react-native/deployments","created_at":"2015-01-09T18:10:16Z","updated_at":"2018-09-18T13:15:43Z","pushed_at":"2018-09-18T12:56:13Z","git_url":"git://github.com/facebook/react-native.git","ssh_url":"git@github.com:facebook/react-native.git","clone_url":"https://github.com/facebook/react-native.git","svn_url":"https://github.com/facebook/react-native","homepage":"https://facebook.github.io/react-native/","size":263850,"stargazers_count":68770,"watchers_count":68770,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15420,"mirror_url":null,"archived":false,"open_issues_count":891,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":15420,"open_issues":891,"watchers":68770,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/21169"},"html":{"href":"https://github.com/facebook/react-native/pull/21169"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/21169"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/21169/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/21169/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react-native/pulls/21169/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/d90b1ad3cd3ca70aff2f1238aafc4bc402a515e3"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":131,"deletions":84,"changed_files":1}}
{"actor":{"display_login":"ShaMan123"}}