{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/168934010","pull_request_review_id":97386224,"id":168934010,"diff_hunk":"@@ -123,6 +115,33 @@ def self.start(user: nil, is_swift_fastfile: false)\n     end\n     # rubocop:enable Metrics/BlockNesting\n \n+    def self.already_set_up(user: nil, is_swift_fastfile: false)\n+      if is_swift_fastfile && !FastlaneCore::FastlaneFolder.swift?\n+        UI.important(\"fastlane is already configured using Ruby.\")\n+        UI.message(\"If you want to switch to Swift, I can reinitialize your fastlane project:\")\n+        UI.message(\" 1️⃣  The fastlane directory (at #{FastlaneCore::FastlaneFolder.path}) would be renamed `fastlane.old`\")\n+        UI.message(\" 2️⃣  I would run the fastlane Swift initialization\")\n+        UI.message(\" 3️⃣  You'd need to port your customizations from Ruby to Swift by hand.\")\n+        if UI.confirm(\"Should I rename your folder \\\"fastlane.old\\\" and initialize a new Swift fastlane project?\")","path":"fastlane/lib/fastlane/setup/setup.rb","position":28,"original_position":28,"commit_id":"2393ba4150cee39f947fd5c7ddbcb18efb537d74","original_commit_id":"2393ba4150cee39f947fd5c7ddbcb18efb537d74","user":{"login":"janpio","id":183673,"avatar_url":"https://avatars0.githubusercontent.com/u/183673?v=4","gravatar_id":"","url":"https://api.github.com/users/janpio","html_url":"https://github.com/janpio","followers_url":"https://api.github.com/users/janpio/followers","following_url":"https://api.github.com/users/janpio/following{/other_user}","gists_url":"https://api.github.com/users/janpio/gists{/gist_id}","starred_url":"https://api.github.com/users/janpio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janpio/subscriptions","organizations_url":"https://api.github.com/users/janpio/orgs","repos_url":"https://api.github.com/users/janpio/repos","events_url":"https://api.github.com/users/janpio/events{/privacy}","received_events_url":"https://api.github.com/users/janpio/received_events","type":"User","site_admin":false},"body":"Ok, then only the \"to\" is missing.","created_at":"2018-02-17T22:02:56Z","updated_at":"2018-02-17T22:02:56Z","html_url":"https://github.com/fastlane/fastlane/pull/10896#discussion_r168934010","pull_request_url":"https://api.github.com/repos/fastlane/fastlane/pulls/10896","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/168934010"},"html":{"href":"https://github.com/fastlane/fastlane/pull/10896#discussion_r168934010"},"pull_request":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/10896"}},"in_reply_to_id":168931476},"pull_request":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/10896","id":152352443,"html_url":"https://github.com/fastlane/fastlane/pull/10896","diff_url":"https://github.com/fastlane/fastlane/pull/10896.diff","patch_url":"https://github.com/fastlane/fastlane/pull/10896.patch","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/10896","number":10896,"state":"open","locked":false,"title":"Add basic Ruby-to-Swift migration","user":{"login":"getaaron","id":789577,"avatar_url":"https://avatars2.githubusercontent.com/u/789577?v=4","gravatar_id":"","url":"https://api.github.com/users/getaaron","html_url":"https://github.com/getaaron","followers_url":"https://api.github.com/users/getaaron/followers","following_url":"https://api.github.com/users/getaaron/following{/other_user}","gists_url":"https://api.github.com/users/getaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/getaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getaaron/subscriptions","organizations_url":"https://api.github.com/users/getaaron/orgs","repos_url":"https://api.github.com/users/getaaron/repos","events_url":"https://api.github.com/users/getaaron/events{/privacy}","received_events_url":"https://api.github.com/users/getaaron/received_events","type":"User","site_admin":false},"body":"### Checklist\r\n- [x] I've run `bundle exec rspec` from the root directory to see all new and existing tests pass\r\n- [x] I've followed the _fastlane_ code style and run `bundle exec rubocop -a` to ensure the code style is valid\r\n- [x] I've read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n- [x] I've updated the documentation if necessary.\r\n\r\n### Motivation, Context, and Description\r\nFor @taquitos to review (and anyone else interested)\r\n\r\nFor the Fastfile-in-Swift feature, this change:\r\n\r\n1. Gives a helpful error message if users run `fastlane init --swift` when they already have a Ruby fastlane project\r\n2. Offers to rename their fastlane directory to `fastlane.old` and create a new Swift-based setup if they so desire","created_at":"2017-11-13T21:29:41Z","updated_at":"2018-02-17T22:02:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f5e3641a4c5bc51ff46c58fea8a13e4605e8da0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"taquitos","id":1304821,"avatar_url":"https://avatars2.githubusercontent.com/u/1304821?v=4","gravatar_id":"","url":"https://api.github.com/users/taquitos","html_url":"https://github.com/taquitos","followers_url":"https://api.github.com/users/taquitos/followers","following_url":"https://api.github.com/users/taquitos/following{/other_user}","gists_url":"https://api.github.com/users/taquitos/gists{/gist_id}","starred_url":"https://api.github.com/users/taquitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taquitos/subscriptions","organizations_url":"https://api.github.com/users/taquitos/orgs","repos_url":"https://api.github.com/users/taquitos/repos","events_url":"https://api.github.com/users/taquitos/events{/privacy}","received_events_url":"https://api.github.com/users/taquitos/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":560540952,"url":"https://api.github.com/repos/fastlane/fastlane/labels/cla:%20yes","name":"cla: yes","color":"0e8a16","default":false},{"id":516992007,"url":"https://api.github.com/repos/fastlane/fastlane/labels/status:%20needs-attention","name":"status: needs-attention","color":"FF71C2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/fastlane/pulls/10896/commits","review_comments_url":"https://api.github.com/repos/fastlane/fastlane/pulls/10896/comments","review_comment_url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/10896/comments","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/2393ba4150cee39f947fd5c7ddbcb18efb537d74","head":{"label":"getaaron:swift","ref":"swift","sha":"2393ba4150cee39f947fd5c7ddbcb18efb537d74","user":{"login":"getaaron","id":789577,"avatar_url":"https://avatars2.githubusercontent.com/u/789577?v=4","gravatar_id":"","url":"https://api.github.com/users/getaaron","html_url":"https://github.com/getaaron","followers_url":"https://api.github.com/users/getaaron/followers","following_url":"https://api.github.com/users/getaaron/following{/other_user}","gists_url":"https://api.github.com/users/getaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/getaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getaaron/subscriptions","organizations_url":"https://api.github.com/users/getaaron/orgs","repos_url":"https://api.github.com/users/getaaron/repos","events_url":"https://api.github.com/users/getaaron/events{/privacy}","received_events_url":"https://api.github.com/users/getaaron/received_events","type":"User","site_admin":false},"repo":{"id":84884737,"name":"fastlane","full_name":"getaaron/fastlane","owner":{"login":"getaaron","id":789577,"avatar_url":"https://avatars2.githubusercontent.com/u/789577?v=4","gravatar_id":"","url":"https://api.github.com/users/getaaron","html_url":"https://github.com/getaaron","followers_url":"https://api.github.com/users/getaaron/followers","following_url":"https://api.github.com/users/getaaron/following{/other_user}","gists_url":"https://api.github.com/users/getaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/getaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getaaron/subscriptions","organizations_url":"https://api.github.com/users/getaaron/orgs","repos_url":"https://api.github.com/users/getaaron/repos","events_url":"https://api.github.com/users/getaaron/events{/privacy}","received_events_url":"https://api.github.com/users/getaaron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/getaaron/fastlane","description":"🚀 The easiest way to automate building and releasing your iOS and Android apps","fork":true,"url":"https://api.github.com/repos/getaaron/fastlane","forks_url":"https://api.github.com/repos/getaaron/fastlane/forks","keys_url":"https://api.github.com/repos/getaaron/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getaaron/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getaaron/fastlane/teams","hooks_url":"https://api.github.com/repos/getaaron/fastlane/hooks","issue_events_url":"https://api.github.com/repos/getaaron/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/getaaron/fastlane/events","assignees_url":"https://api.github.com/repos/getaaron/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/getaaron/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/getaaron/fastlane/tags","blobs_url":"https://api.github.com/repos/getaaron/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getaaron/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getaaron/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/getaaron/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getaaron/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/getaaron/fastlane/languages","stargazers_url":"https://api.github.com/repos/getaaron/fastlane/stargazers","contributors_url":"https://api.github.com/repos/getaaron/fastlane/contributors","subscribers_url":"https://api.github.com/repos/getaaron/fastlane/subscribers","subscription_url":"https://api.github.com/repos/getaaron/fastlane/subscription","commits_url":"https://api.github.com/repos/getaaron/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/getaaron/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/getaaron/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/getaaron/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/getaaron/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/getaaron/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getaaron/fastlane/merges","archive_url":"https://api.github.com/repos/getaaron/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getaaron/fastlane/downloads","issues_url":"https://api.github.com/repos/getaaron/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/getaaron/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/getaaron/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/getaaron/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getaaron/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/getaaron/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/getaaron/fastlane/deployments","created_at":"2017-03-13T23:36:38Z","updated_at":"2017-03-13T23:36:48Z","pushed_at":"2018-02-17T19:44:35Z","git_url":"git://github.com/getaaron/fastlane.git","ssh_url":"git@github.com:getaaron/fastlane.git","clone_url":"https://github.com/getaaron/fastlane.git","svn_url":"https://github.com/getaaron/fastlane","homepage":"https://fastlane.tools","size":60379,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fastlane:master","ref":"master","sha":"487f1dae11b79f50afcd50cfee079ebb5f1b8cea","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":27442967,"name":"fastlane","full_name":"fastlane/fastlane","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/fastlane","description":"🚀 The easiest way to automate building and releasing your iOS and Android apps","fork":false,"url":"https://api.github.com/repos/fastlane/fastlane","forks_url":"https://api.github.com/repos/fastlane/fastlane/forks","keys_url":"https://api.github.com/repos/fastlane/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/fastlane/teams","hooks_url":"https://api.github.com/repos/fastlane/fastlane/hooks","issue_events_url":"https://api.github.com/repos/fastlane/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/fastlane/events","assignees_url":"https://api.github.com/repos/fastlane/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/fastlane/tags","blobs_url":"https://api.github.com/repos/fastlane/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/fastlane/languages","stargazers_url":"https://api.github.com/repos/fastlane/fastlane/stargazers","contributors_url":"https://api.github.com/repos/fastlane/fastlane/contributors","subscribers_url":"https://api.github.com/repos/fastlane/fastlane/subscribers","subscription_url":"https://api.github.com/repos/fastlane/fastlane/subscription","commits_url":"https://api.github.com/repos/fastlane/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/fastlane/merges","archive_url":"https://api.github.com/repos/fastlane/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/fastlane/downloads","issues_url":"https://api.github.com/repos/fastlane/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/fastlane/deployments","created_at":"2014-12-02T17:00:38Z","updated_at":"2018-02-17T18:24:27Z","pushed_at":"2018-02-17T21:52:42Z","git_url":"git://github.com/fastlane/fastlane.git","ssh_url":"git@github.com:fastlane/fastlane.git","clone_url":"https://github.com/fastlane/fastlane.git","svn_url":"https://github.com/fastlane/fastlane","homepage":"https://fastlane.tools","size":60740,"stargazers_count":20657,"watchers_count":20657,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3141,"mirror_url":null,"archived":false,"open_issues_count":483,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3141,"open_issues":483,"watchers":20657,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/10896"},"html":{"href":"https://github.com/fastlane/fastlane/pull/10896"},"issue":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/10896"},"comments":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/10896/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/10896/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/10896/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/fastlane/statuses/2393ba4150cee39f947fd5c7ddbcb18efb537d74"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"janpio"}}