{"action":"created","comment":{"url":"https://api.github.com/repos/acquia/blt/pulls/comments/146530895","pull_request_review_id":71484146,"id":146530895,"diff_hunk":"@@ -66,9 +66,18 @@ public function populateHelperConfig() {\n    * @param string $site_name\n    *   The name of a multisite. E.g., if docroot/sites/example.com is the site,\n    *   $site_name would be example.com.\n+   * @param string $machine_name\n+   *   The machine name in a multisite environment.\n+   *   E.g., @machine_name.sitename.dev\n    */\n-  public function setSiteConfig($site_name) {\n+  public function setSiteConfig($site_name, $machine_name = NULL) {\n     $this->config->set('site', $site_name);\n+\n+    // Adapt remote alias for the multisite.\n+    if ($environment = $this->config->get('drush.aliases.remote_env')) {\n+      $this->config->set('drush.aliases.remote', $machine_name . '.' . $site_name . '.' . $environment);","path":"src/Robo/Config/DefaultConfig.php","position":14,"original_position":14,"commit_id":"8b87ec8ca505c742af3680a9bffe5d13580ee363","original_commit_id":"8b87ec8ca505c742af3680a9bffe5d13580ee363","user":{"login":"alex-moreno","id":2079182,"avatar_url":"https://avatars1.githubusercontent.com/u/2079182?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-moreno","html_url":"https://github.com/alex-moreno","followers_url":"https://api.github.com/users/alex-moreno/followers","following_url":"https://api.github.com/users/alex-moreno/following{/other_user}","gists_url":"https://api.github.com/users/alex-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-moreno/subscriptions","organizations_url":"https://api.github.com/users/alex-moreno/orgs","repos_url":"https://api.github.com/users/alex-moreno/repos","events_url":"https://api.github.com/users/alex-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/alex-moreno/received_events","type":"User","site_admin":false},"body":"this needs a new yml value:\r\n\r\n```\r\ndrush:\r\n  aliases:\r\n    remote_env: 'prod'\r\n```","created_at":"2017-10-24T11:34:02Z","updated_at":"2017-10-24T11:34:02Z","html_url":"https://github.com/acquia/blt/pull/2187#discussion_r146530895","pull_request_url":"https://api.github.com/repos/acquia/blt/pulls/2187","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/acquia/blt/pulls/comments/146530895"},"html":{"href":"https://github.com/acquia/blt/pull/2187#discussion_r146530895"},"pull_request":{"href":"https://api.github.com/repos/acquia/blt/pulls/2187"}}},"pull_request":{"url":"https://api.github.com/repos/acquia/blt/pulls/2187","id":148369506,"html_url":"https://github.com/acquia/blt/pull/2187","diff_url":"https://github.com/acquia/blt/pull/2187.diff","patch_url":"https://github.com/acquia/blt/pull/2187.patch","issue_url":"https://api.github.com/repos/acquia/blt/issues/2187","number":2187,"state":"open","locked":false,"title":"Pr blt issue 2173 drush multisite","user":{"login":"alex-moreno","id":2079182,"avatar_url":"https://avatars1.githubusercontent.com/u/2079182?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-moreno","html_url":"https://github.com/alex-moreno","followers_url":"https://api.github.com/users/alex-moreno/followers","following_url":"https://api.github.com/users/alex-moreno/following{/other_user}","gists_url":"https://api.github.com/users/alex-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-moreno/subscriptions","organizations_url":"https://api.github.com/users/alex-moreno/orgs","repos_url":"https://api.github.com/users/alex-moreno/repos","events_url":"https://api.github.com/users/alex-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/alex-moreno/received_events","type":"User","site_admin":false},"body":"Fixes #2173 .\r\n\r\nChanges proposed:\r\n- initialize() sends a new parameter from project.yml, project.machine_name, \r\n- setSiteConfig() is now multisite aware, adapting not just site but also drush remote alias.\r\n","created_at":"2017-10-24T11:29:34Z","updated_at":"2017-10-24T11:34:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1263ca48312f9baef1517d17258a6cb521264fed","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/acquia/blt/pulls/2187/commits","review_comments_url":"https://api.github.com/repos/acquia/blt/pulls/2187/comments","review_comment_url":"https://api.github.com/repos/acquia/blt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acquia/blt/issues/2187/comments","statuses_url":"https://api.github.com/repos/acquia/blt/statuses/8b87ec8ca505c742af3680a9bffe5d13580ee363","head":{"label":"alex-moreno:PR-BLT-issue-2173-drush-multisite","ref":"PR-BLT-issue-2173-drush-multisite","sha":"8b87ec8ca505c742af3680a9bffe5d13580ee363","user":{"login":"alex-moreno","id":2079182,"avatar_url":"https://avatars1.githubusercontent.com/u/2079182?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-moreno","html_url":"https://github.com/alex-moreno","followers_url":"https://api.github.com/users/alex-moreno/followers","following_url":"https://api.github.com/users/alex-moreno/following{/other_user}","gists_url":"https://api.github.com/users/alex-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-moreno/subscriptions","organizations_url":"https://api.github.com/users/alex-moreno/orgs","repos_url":"https://api.github.com/users/alex-moreno/repos","events_url":"https://api.github.com/users/alex-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/alex-moreno/received_events","type":"User","site_admin":false},"repo":{"id":98524895,"name":"blt","full_name":"alex-moreno/blt","owner":{"login":"alex-moreno","id":2079182,"avatar_url":"https://avatars1.githubusercontent.com/u/2079182?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-moreno","html_url":"https://github.com/alex-moreno","followers_url":"https://api.github.com/users/alex-moreno/followers","following_url":"https://api.github.com/users/alex-moreno/following{/other_user}","gists_url":"https://api.github.com/users/alex-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-moreno/subscriptions","organizations_url":"https://api.github.com/users/alex-moreno/orgs","repos_url":"https://api.github.com/users/alex-moreno/repos","events_url":"https://api.github.com/users/alex-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/alex-moreno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alex-moreno/blt","description":"Acquia's Build & Launch tools for Drupal 8.","fork":true,"url":"https://api.github.com/repos/alex-moreno/blt","forks_url":"https://api.github.com/repos/alex-moreno/blt/forks","keys_url":"https://api.github.com/repos/alex-moreno/blt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex-moreno/blt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex-moreno/blt/teams","hooks_url":"https://api.github.com/repos/alex-moreno/blt/hooks","issue_events_url":"https://api.github.com/repos/alex-moreno/blt/issues/events{/number}","events_url":"https://api.github.com/repos/alex-moreno/blt/events","assignees_url":"https://api.github.com/repos/alex-moreno/blt/assignees{/user}","branches_url":"https://api.github.com/repos/alex-moreno/blt/branches{/branch}","tags_url":"https://api.github.com/repos/alex-moreno/blt/tags","blobs_url":"https://api.github.com/repos/alex-moreno/blt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex-moreno/blt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex-moreno/blt/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex-moreno/blt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex-moreno/blt/statuses/{sha}","languages_url":"https://api.github.com/repos/alex-moreno/blt/languages","stargazers_url":"https://api.github.com/repos/alex-moreno/blt/stargazers","contributors_url":"https://api.github.com/repos/alex-moreno/blt/contributors","subscribers_url":"https://api.github.com/repos/alex-moreno/blt/subscribers","subscription_url":"https://api.github.com/repos/alex-moreno/blt/subscription","commits_url":"https://api.github.com/repos/alex-moreno/blt/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex-moreno/blt/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex-moreno/blt/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex-moreno/blt/issues/comments{/number}","contents_url":"https://api.github.com/repos/alex-moreno/blt/contents/{+path}","compare_url":"https://api.github.com/repos/alex-moreno/blt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex-moreno/blt/merges","archive_url":"https://api.github.com/repos/alex-moreno/blt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex-moreno/blt/downloads","issues_url":"https://api.github.com/repos/alex-moreno/blt/issues{/number}","pulls_url":"https://api.github.com/repos/alex-moreno/blt/pulls{/number}","milestones_url":"https://api.github.com/repos/alex-moreno/blt/milestones{/number}","notifications_url":"https://api.github.com/repos/alex-moreno/blt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex-moreno/blt/labels{/name}","releases_url":"https://api.github.com/repos/alex-moreno/blt/releases{/id}","deployments_url":"https://api.github.com/repos/alex-moreno/blt/deployments","created_at":"2017-07-27T10:45:05Z","updated_at":"2017-07-27T10:45:07Z","pushed_at":"2017-10-24T11:31:20Z","git_url":"git://github.com/alex-moreno/blt.git","ssh_url":"git@github.com:alex-moreno/blt.git","clone_url":"https://github.com/alex-moreno/blt.git","svn_url":"https://github.com/alex-moreno/blt","homepage":"","size":2765,"stargazers_count":0,"watchers_count":0,"language":"PHP","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"8.x"}},"base":{"label":"acquia:8.9.x","ref":"8.9.x","sha":"38388ec2f0c092a95dcb1615b11fae0fb2d3be22","user":{"login":"acquia","id":514789,"avatar_url":"https://avatars0.githubusercontent.com/u/514789?v=4","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"repo":{"id":57239027,"name":"blt","full_name":"acquia/blt","owner":{"login":"acquia","id":514789,"avatar_url":"https://avatars0.githubusercontent.com/u/514789?v=4","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquia/blt","description":"Acquia's Build & Launch tools for Drupal 8.","fork":false,"url":"https://api.github.com/repos/acquia/blt","forks_url":"https://api.github.com/repos/acquia/blt/forks","keys_url":"https://api.github.com/repos/acquia/blt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquia/blt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquia/blt/teams","hooks_url":"https://api.github.com/repos/acquia/blt/hooks","issue_events_url":"https://api.github.com/repos/acquia/blt/issues/events{/number}","events_url":"https://api.github.com/repos/acquia/blt/events","assignees_url":"https://api.github.com/repos/acquia/blt/assignees{/user}","branches_url":"https://api.github.com/repos/acquia/blt/branches{/branch}","tags_url":"https://api.github.com/repos/acquia/blt/tags","blobs_url":"https://api.github.com/repos/acquia/blt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquia/blt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquia/blt/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquia/blt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquia/blt/statuses/{sha}","languages_url":"https://api.github.com/repos/acquia/blt/languages","stargazers_url":"https://api.github.com/repos/acquia/blt/stargazers","contributors_url":"https://api.github.com/repos/acquia/blt/contributors","subscribers_url":"https://api.github.com/repos/acquia/blt/subscribers","subscription_url":"https://api.github.com/repos/acquia/blt/subscription","commits_url":"https://api.github.com/repos/acquia/blt/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquia/blt/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquia/blt/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquia/blt/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquia/blt/contents/{+path}","compare_url":"https://api.github.com/repos/acquia/blt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquia/blt/merges","archive_url":"https://api.github.com/repos/acquia/blt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquia/blt/downloads","issues_url":"https://api.github.com/repos/acquia/blt/issues{/number}","pulls_url":"https://api.github.com/repos/acquia/blt/pulls{/number}","milestones_url":"https://api.github.com/repos/acquia/blt/milestones{/number}","notifications_url":"https://api.github.com/repos/acquia/blt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquia/blt/labels{/name}","releases_url":"https://api.github.com/repos/acquia/blt/releases{/id}","deployments_url":"https://api.github.com/repos/acquia/blt/deployments","created_at":"2016-04-27T19:04:48Z","updated_at":"2017-10-18T12:26:34Z","pushed_at":"2017-10-24T11:31:22Z","git_url":"git://github.com/acquia/blt.git","ssh_url":"git@github.com:acquia/blt.git","clone_url":"https://github.com/acquia/blt.git","svn_url":"https://github.com/acquia/blt","homepage":"","size":2972,"stargazers_count":232,"watchers_count":232,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":189,"mirror_url":null,"archived":false,"open_issues_count":42,"forks":189,"open_issues":42,"watchers":232,"default_branch":"9.1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/acquia/blt/pulls/2187"},"html":{"href":"https://github.com/acquia/blt/pull/2187"},"issue":{"href":"https://api.github.com/repos/acquia/blt/issues/2187"},"comments":{"href":"https://api.github.com/repos/acquia/blt/issues/2187/comments"},"review_comments":{"href":"https://api.github.com/repos/acquia/blt/pulls/2187/comments"},"review_comment":{"href":"https://api.github.com/repos/acquia/blt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acquia/blt/pulls/2187/commits"},"statuses":{"href":"https://api.github.com/repos/acquia/blt/statuses/8b87ec8ca505c742af3680a9bffe5d13580ee363"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"alex-moreno"}}