{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments/78859814","id":78859814,"diff_hunk":"@@ -0,0 +1,187 @@\n+'use strict';\n+\n+const childProcess = require('child_process');\n+const fs = require('fs');\n+const path = require('path');\n+const mkdirp = require('mkdirp');\n+const inquirer = require('inquirer');\n+const net = require('net');\n+const rimraf = require('rimraf');\n+\n+const spawn = childProcess.spawn;\n+const execSync = childProcess.execSync;\n+\n+const platformError = new Error('Platform ' + process.platform + ' is not supported');\n+\n+function defaults(val, def) {\n+  return typeof val === 'undefined' ? def : val;\n+}\n+\n+module.exports = class Launcher {\n+  constructor(opts) {\n+    opts = opts || {};\n+    // choose the first one (default)\n+    this.head = defaults(opts.head, true);","path":"lighthouse-cli/chrome-launcher.js","position":37,"original_position":24,"commit_id":"22111cbb5b0ebfeb1f5aa3d22ee57301d8ba5ebf","original_commit_id":"d292b33c584f6a74ca6b6fe804d7ff28ba84b0aa","user":{"login":"boopathi","id":294474,"avatar_url":"https://avatars.githubusercontent.com/u/294474?v=3","gravatar_id":"","url":"https://api.github.com/users/boopathi","html_url":"https://github.com/boopathi","followers_url":"https://api.github.com/users/boopathi/followers","following_url":"https://api.github.com/users/boopathi/following{/other_user}","gists_url":"https://api.github.com/users/boopathi/gists{/gist_id}","starred_url":"https://api.github.com/users/boopathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boopathi/subscriptions","organizations_url":"https://api.github.com/users/boopathi/orgs","repos_url":"https://api.github.com/users/boopathi/repos","events_url":"https://api.github.com/users/boopathi/events{/privacy}","received_events_url":"https://api.github.com/users/boopathi/received_events","type":"User","site_admin":false},"body":"maybe `useSomeChrome`, `preferSomeChrome`, `autoSelectChrome`? I like `autoSelectChrome` ... descriptive and relatively short ...","created_at":"2016-09-14T22:57:38Z","updated_at":"2016-09-14T22:57:38Z","html_url":"https://github.com/GoogleChrome/lighthouse/pull/642#discussion_r78859814","pull_request_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642","_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments/78859814"},"html":{"href":"https://github.com/GoogleChrome/lighthouse/pull/642#discussion_r78859814"},"pull_request":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642","id":84965237,"html_url":"https://github.com/GoogleChrome/lighthouse/pull/642","diff_url":"https://github.com/GoogleChrome/lighthouse/pull/642.diff","patch_url":"https://github.com/GoogleChrome/lighthouse/pull/642.patch","issue_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/642","number":642,"state":"open","locked":false,"title":"Launch chrome as a part of Lighthouse CLI","user":{"login":"boopathi","id":294474,"avatar_url":"https://avatars.githubusercontent.com/u/294474?v=3","gravatar_id":"","url":"https://api.github.com/users/boopathi","html_url":"https://github.com/boopathi","followers_url":"https://api.github.com/users/boopathi/followers","following_url":"https://api.github.com/users/boopathi/following{/other_user}","gists_url":"https://api.github.com/users/boopathi/gists{/gist_id}","starred_url":"https://api.github.com/users/boopathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boopathi/subscriptions","organizations_url":"https://api.github.com/users/boopathi/orgs","repos_url":"https://api.github.com/users/boopathi/repos","events_url":"https://api.github.com/users/boopathi/events{/privacy}","received_events_url":"https://api.github.com/users/boopathi/received_events","type":"User","site_admin":false},"body":"#349 \r\n\r\n+ ~~Rebased the old branch~~\r\n+ ~~Works only for OSX now~~\r\n\r\n--- \r\n\r\n+ flag `--select-chrome` to choose from chrome installation when multiple are found\r\n+ ~~flag `--no-launch-chrome` to disable chrome launch~~\r\n+ flag `--skip-autolaunch` to disable chrome launch\r\n","created_at":"2016-09-12T23:59:48Z","updated_at":"2016-09-14T22:57:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f12988ec2d5bcb5633e0fdbf8f8fb72f44fdcace","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642/commits","review_comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642/comments","review_comment_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/642/comments","statuses_url":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/22111cbb5b0ebfeb1f5aa3d22ee57301d8ba5ebf","head":{"label":"boopathi:launch-chrome-js-1","ref":"launch-chrome-js-1","sha":"22111cbb5b0ebfeb1f5aa3d22ee57301d8ba5ebf","user":{"login":"boopathi","id":294474,"avatar_url":"https://avatars.githubusercontent.com/u/294474?v=3","gravatar_id":"","url":"https://api.github.com/users/boopathi","html_url":"https://github.com/boopathi","followers_url":"https://api.github.com/users/boopathi/followers","following_url":"https://api.github.com/users/boopathi/following{/other_user}","gists_url":"https://api.github.com/users/boopathi/gists{/gist_id}","starred_url":"https://api.github.com/users/boopathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boopathi/subscriptions","organizations_url":"https://api.github.com/users/boopathi/orgs","repos_url":"https://api.github.com/users/boopathi/repos","events_url":"https://api.github.com/users/boopathi/events{/privacy}","received_events_url":"https://api.github.com/users/boopathi/received_events","type":"User","site_admin":false},"repo":{"id":55345594,"name":"lighthouse","full_name":"boopathi/lighthouse","owner":{"login":"boopathi","id":294474,"avatar_url":"https://avatars.githubusercontent.com/u/294474?v=3","gravatar_id":"","url":"https://api.github.com/users/boopathi","html_url":"https://github.com/boopathi","followers_url":"https://api.github.com/users/boopathi/followers","following_url":"https://api.github.com/users/boopathi/following{/other_user}","gists_url":"https://api.github.com/users/boopathi/gists{/gist_id}","starred_url":"https://api.github.com/users/boopathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boopathi/subscriptions","organizations_url":"https://api.github.com/users/boopathi/orgs","repos_url":"https://api.github.com/users/boopathi/repos","events_url":"https://api.github.com/users/boopathi/events{/privacy}","received_events_url":"https://api.github.com/users/boopathi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boopathi/lighthouse","description":null,"fork":true,"url":"https://api.github.com/repos/boopathi/lighthouse","forks_url":"https://api.github.com/repos/boopathi/lighthouse/forks","keys_url":"https://api.github.com/repos/boopathi/lighthouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boopathi/lighthouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boopathi/lighthouse/teams","hooks_url":"https://api.github.com/repos/boopathi/lighthouse/hooks","issue_events_url":"https://api.github.com/repos/boopathi/lighthouse/issues/events{/number}","events_url":"https://api.github.com/repos/boopathi/lighthouse/events","assignees_url":"https://api.github.com/repos/boopathi/lighthouse/assignees{/user}","branches_url":"https://api.github.com/repos/boopathi/lighthouse/branches{/branch}","tags_url":"https://api.github.com/repos/boopathi/lighthouse/tags","blobs_url":"https://api.github.com/repos/boopathi/lighthouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boopathi/lighthouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boopathi/lighthouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/boopathi/lighthouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boopathi/lighthouse/statuses/{sha}","languages_url":"https://api.github.com/repos/boopathi/lighthouse/languages","stargazers_url":"https://api.github.com/repos/boopathi/lighthouse/stargazers","contributors_url":"https://api.github.com/repos/boopathi/lighthouse/contributors","subscribers_url":"https://api.github.com/repos/boopathi/lighthouse/subscribers","subscription_url":"https://api.github.com/repos/boopathi/lighthouse/subscription","commits_url":"https://api.github.com/repos/boopathi/lighthouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/boopathi/lighthouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/boopathi/lighthouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/boopathi/lighthouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/boopathi/lighthouse/contents/{+path}","compare_url":"https://api.github.com/repos/boopathi/lighthouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boopathi/lighthouse/merges","archive_url":"https://api.github.com/repos/boopathi/lighthouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boopathi/lighthouse/downloads","issues_url":"https://api.github.com/repos/boopathi/lighthouse/issues{/number}","pulls_url":"https://api.github.com/repos/boopathi/lighthouse/pulls{/number}","milestones_url":"https://api.github.com/repos/boopathi/lighthouse/milestones{/number}","notifications_url":"https://api.github.com/repos/boopathi/lighthouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boopathi/lighthouse/labels{/name}","releases_url":"https://api.github.com/repos/boopathi/lighthouse/releases{/id}","deployments_url":"https://api.github.com/repos/boopathi/lighthouse/deployments","created_at":"2016-04-03T12:36:44Z","updated_at":"2016-04-03T12:36:45Z","pushed_at":"2016-09-14T15:29:18Z","git_url":"git://github.com/boopathi/lighthouse.git","ssh_url":"git@github.com:boopathi/lighthouse.git","clone_url":"https://github.com/boopathi/lighthouse.git","svn_url":"https://github.com/boopathi/lighthouse","homepage":null,"size":7273,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"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":"GoogleChrome:master","ref":"master","sha":"067db41f599503a972cee6e53d9e420fcd106be8","user":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"repo":{"id":53370988,"name":"lighthouse","full_name":"GoogleChrome/lighthouse","owner":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleChrome/lighthouse","description":"auditing and performance metrics for Progressive Web Apps","fork":false,"url":"https://api.github.com/repos/GoogleChrome/lighthouse","forks_url":"https://api.github.com/repos/GoogleChrome/lighthouse/forks","keys_url":"https://api.github.com/repos/GoogleChrome/lighthouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChrome/lighthouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChrome/lighthouse/teams","hooks_url":"https://api.github.com/repos/GoogleChrome/lighthouse/hooks","issue_events_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChrome/lighthouse/events","assignees_url":"https://api.github.com/repos/GoogleChrome/lighthouse/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChrome/lighthouse/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChrome/lighthouse/tags","blobs_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChrome/lighthouse/languages","stargazers_url":"https://api.github.com/repos/GoogleChrome/lighthouse/stargazers","contributors_url":"https://api.github.com/repos/GoogleChrome/lighthouse/contributors","subscribers_url":"https://api.github.com/repos/GoogleChrome/lighthouse/subscribers","subscription_url":"https://api.github.com/repos/GoogleChrome/lighthouse/subscription","commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChrome/lighthouse/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChrome/lighthouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChrome/lighthouse/merges","archive_url":"https://api.github.com/repos/GoogleChrome/lighthouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChrome/lighthouse/downloads","issues_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChrome/lighthouse/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChrome/lighthouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChrome/lighthouse/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChrome/lighthouse/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/deployments","created_at":"2016-03-08T01:03:11Z","updated_at":"2016-09-14T22:46:26Z","pushed_at":"2016-09-14T18:44:25Z","git_url":"git://github.com/GoogleChrome/lighthouse.git","ssh_url":"git@github.com:GoogleChrome/lighthouse.git","clone_url":"https://github.com/GoogleChrome/lighthouse.git","svn_url":"https://github.com/GoogleChrome/lighthouse","homepage":"","size":9164,"stargazers_count":2152,"watchers_count":2152,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":88,"mirror_url":null,"open_issues_count":59,"forks":88,"open_issues":59,"watchers":2152,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642"},"html":{"href":"https://github.com/GoogleChrome/lighthouse/pull/642"},"issue":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/642"},"comments":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/642/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/642/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/22111cbb5b0ebfeb1f5aa3d22ee57301d8ba5ebf"}}}}
{"actor":{"display_login":"boopathi"}}