{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/fastlane_core/pulls/comments/50141170","id":50141170,"diff_hunk":"@@ -114,13 +116,18 @@ def select_scheme\n       if schemes.count == 1\n         options[:scheme] = schemes.last\n       elsif schemes.count > 1\n-        if Helper.is_ci?\n-          Helper.log.error \"Multiple schemes found but you haven't specified one.\".red\n-          Helper.log.error \"Since this is a CI, please pass one using the `scheme` option\".red\n-          raise \"Multiple schemes found\".red\n+        preferred = schemes.find_all { |a| a.downcase.include?(preferred_to_include.downcase) }","path":"lib/fastlane_core/project.rb","position":19,"original_position":19,"commit_id":"4c436496067d5acf3d4600655ddacc0ec55a1f88","original_commit_id":"4c436496067d5acf3d4600655ddacc0ec55a1f88","user":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"body":"I didn't know about `casecmp`, we can use it to compare strings, thanks :+1: \r\n\r\nYeah, it's used for automatically selecting the UI Tests targets when using `snapshot`, so it would search for `UITest` by default, which might be `UITestExample`","created_at":"2016-01-19T17:05:54Z","updated_at":"2016-01-19T17:05:54Z","html_url":"https://github.com/fastlane/fastlane_core/pull/80#discussion_r50141170","pull_request_url":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane_core/pulls/comments/50141170"},"html":{"href":"https://github.com/fastlane/fastlane_core/pull/80#discussion_r50141170"},"pull_request":{"href":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80","id":56294363,"html_url":"https://github.com/fastlane/fastlane_core/pull/80","diff_url":"https://github.com/fastlane/fastlane_core/pull/80.diff","patch_url":"https://github.com/fastlane/fastlane_core/pull/80.patch","issue_url":"https://api.github.com/repos/fastlane/fastlane_core/issues/80","number":80,"state":"open","locked":false,"title":"Added new `preferred_to_include` option to `select_scheme`","user":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"body":"Will be used in `snapshot` to automatically prefer `UITests` schemes","created_at":"2016-01-18T01:36:29Z","updated_at":"2016-01-19T17:05:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d69e70adad001cb2c3f62de32d5103912726e43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80/commits","review_comments_url":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80/comments","review_comment_url":"https://api.github.com/repos/fastlane/fastlane_core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/fastlane_core/issues/80/comments","statuses_url":"https://api.github.com/repos/fastlane/fastlane_core/statuses/4c436496067d5acf3d4600655ddacc0ec55a1f88","head":{"label":"fastlane:feature/default-scheme","ref":"feature/default-scheme","sha":"4c436496067d5acf3d4600655ddacc0ec55a1f88","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","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":30920813,"name":"fastlane_core","full_name":"fastlane/fastlane_core","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","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_core","description":"All shared code of the fastlane toolchain","fork":false,"url":"https://api.github.com/repos/fastlane/fastlane_core","forks_url":"https://api.github.com/repos/fastlane/fastlane_core/forks","keys_url":"https://api.github.com/repos/fastlane/fastlane_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/fastlane_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/fastlane_core/teams","hooks_url":"https://api.github.com/repos/fastlane/fastlane_core/hooks","issue_events_url":"https://api.github.com/repos/fastlane/fastlane_core/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/fastlane_core/events","assignees_url":"https://api.github.com/repos/fastlane/fastlane_core/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/fastlane_core/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/fastlane_core/tags","blobs_url":"https://api.github.com/repos/fastlane/fastlane_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/fastlane_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/fastlane_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/fastlane_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/fastlane_core/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/fastlane_core/languages","stargazers_url":"https://api.github.com/repos/fastlane/fastlane_core/stargazers","contributors_url":"https://api.github.com/repos/fastlane/fastlane_core/contributors","subscribers_url":"https://api.github.com/repos/fastlane/fastlane_core/subscribers","subscription_url":"https://api.github.com/repos/fastlane/fastlane_core/subscription","commits_url":"https://api.github.com/repos/fastlane/fastlane_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/fastlane_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/fastlane_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/fastlane_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/fastlane_core/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/fastlane_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/fastlane_core/merges","archive_url":"https://api.github.com/repos/fastlane/fastlane_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/fastlane_core/downloads","issues_url":"https://api.github.com/repos/fastlane/fastlane_core/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/fastlane_core/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/fastlane_core/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/fastlane_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/fastlane_core/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/fastlane_core/releases{/id}","created_at":"2015-02-17T14:37:31Z","updated_at":"2016-01-18T08:16:53Z","pushed_at":"2016-01-19T04:15:58Z","git_url":"git://github.com/fastlane/fastlane_core.git","ssh_url":"git@github.com:fastlane/fastlane_core.git","clone_url":"https://github.com/fastlane/fastlane_core.git","svn_url":"https://github.com/fastlane/fastlane_core","homepage":"https://fastlane.tools","size":438,"stargazers_count":26,"watchers_count":26,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":13,"forks":39,"open_issues":13,"watchers":26,"default_branch":"master"}},"base":{"label":"fastlane:master","ref":"master","sha":"f0b77aeb16dcee8978f3a69b02e28381e12f1c93","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","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":30920813,"name":"fastlane_core","full_name":"fastlane/fastlane_core","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","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_core","description":"All shared code of the fastlane toolchain","fork":false,"url":"https://api.github.com/repos/fastlane/fastlane_core","forks_url":"https://api.github.com/repos/fastlane/fastlane_core/forks","keys_url":"https://api.github.com/repos/fastlane/fastlane_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/fastlane_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/fastlane_core/teams","hooks_url":"https://api.github.com/repos/fastlane/fastlane_core/hooks","issue_events_url":"https://api.github.com/repos/fastlane/fastlane_core/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/fastlane_core/events","assignees_url":"https://api.github.com/repos/fastlane/fastlane_core/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/fastlane_core/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/fastlane_core/tags","blobs_url":"https://api.github.com/repos/fastlane/fastlane_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/fastlane_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/fastlane_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/fastlane_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/fastlane_core/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/fastlane_core/languages","stargazers_url":"https://api.github.com/repos/fastlane/fastlane_core/stargazers","contributors_url":"https://api.github.com/repos/fastlane/fastlane_core/contributors","subscribers_url":"https://api.github.com/repos/fastlane/fastlane_core/subscribers","subscription_url":"https://api.github.com/repos/fastlane/fastlane_core/subscription","commits_url":"https://api.github.com/repos/fastlane/fastlane_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/fastlane_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/fastlane_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/fastlane_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/fastlane_core/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/fastlane_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/fastlane_core/merges","archive_url":"https://api.github.com/repos/fastlane/fastlane_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/fastlane_core/downloads","issues_url":"https://api.github.com/repos/fastlane/fastlane_core/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/fastlane_core/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/fastlane_core/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/fastlane_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/fastlane_core/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/fastlane_core/releases{/id}","created_at":"2015-02-17T14:37:31Z","updated_at":"2016-01-18T08:16:53Z","pushed_at":"2016-01-19T04:15:58Z","git_url":"git://github.com/fastlane/fastlane_core.git","ssh_url":"git@github.com:fastlane/fastlane_core.git","clone_url":"https://github.com/fastlane/fastlane_core.git","svn_url":"https://github.com/fastlane/fastlane_core","homepage":"https://fastlane.tools","size":438,"stargazers_count":26,"watchers_count":26,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":13,"forks":39,"open_issues":13,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80"},"html":{"href":"https://github.com/fastlane/fastlane_core/pull/80"},"issue":{"href":"https://api.github.com/repos/fastlane/fastlane_core/issues/80"},"comments":{"href":"https://api.github.com/repos/fastlane/fastlane_core/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/fastlane_core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/fastlane_core/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/fastlane_core/statuses/4c436496067d5acf3d4600655ddacc0ec55a1f88"}}}}