{"action":"closed","number":68,"pull_request":{"url":"https://api.github.com/repos/arnested/drupal-mode/pulls/68","id":46731327,"html_url":"https://github.com/arnested/drupal-mode/pull/68","diff_url":"https://github.com/arnested/drupal-mode/pull/68.diff","patch_url":"https://github.com/arnested/drupal-mode/pull/68.patch","issue_url":"https://api.github.com/repos/arnested/drupal-mode/issues/68","number":68,"state":"closed","locked":false,"title":"Handle multisites and site aliases","user":{"login":"joddie","id":1049744,"avatar_url":"https://avatars.githubusercontent.com/u/1049744?v=3","gravatar_id":"","url":"https://api.github.com/users/joddie","html_url":"https://github.com/joddie","followers_url":"https://api.github.com/users/joddie/followers","following_url":"https://api.github.com/users/joddie/following{/other_user}","gists_url":"https://api.github.com/users/joddie/gists{/gist_id}","starred_url":"https://api.github.com/users/joddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joddie/subscriptions","organizations_url":"https://api.github.com/users/joddie/orgs","repos_url":"https://api.github.com/users/joddie/repos","events_url":"https://api.github.com/users/joddie/events{/privacy}","received_events_url":"https://api.github.com/users/joddie/received_events","type":"User","site_admin":false},"body":"This pull request is based on the work in #18 to make drush commands support site aliases.  It also allows drupal-mode to work better with multisite installations.  (I dislike multisite setups, but sometimes have to deal with them…)\r\n\r\nIt adds a concept of the \"current site\", which can be specified either using a site alias or a parameter to `--uri`.  It also refactors all Drush calls so that they go through a standard interface which respects these parameters.\r\n\r\nThe \"current site\" setting is common to all buffers within the same project.  It should be detected automatically, and can be changed using a command (`M-x drupal-set-site`) or via the menubar.\r\n\r\nThis has received only light testing, but it seems to work, so I wanted to open a PR to allow others to potentially test and review it.  (Also happy to add more ERT tests, etc.)","created_at":"2015-10-04T19:32:47Z","updated_at":"2016-04-20T19:59:14Z","closed_at":"2016-04-20T19:59:14Z","merged_at":"2016-04-20T19:59:14Z","merge_commit_sha":"685790c40da9e333c37a4e7ddb00040028711922","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arnested/drupal-mode/pulls/68/commits","review_comments_url":"https://api.github.com/repos/arnested/drupal-mode/pulls/68/comments","review_comment_url":"https://api.github.com/repos/arnested/drupal-mode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arnested/drupal-mode/issues/68/comments","statuses_url":"https://api.github.com/repos/arnested/drupal-mode/statuses/685790c40da9e333c37a4e7ddb00040028711922","head":{"label":"joddie:feature/site-alias","ref":"feature/site-alias","sha":"685790c40da9e333c37a4e7ddb00040028711922","user":{"login":"joddie","id":1049744,"avatar_url":"https://avatars.githubusercontent.com/u/1049744?v=3","gravatar_id":"","url":"https://api.github.com/users/joddie","html_url":"https://github.com/joddie","followers_url":"https://api.github.com/users/joddie/followers","following_url":"https://api.github.com/users/joddie/following{/other_user}","gists_url":"https://api.github.com/users/joddie/gists{/gist_id}","starred_url":"https://api.github.com/users/joddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joddie/subscriptions","organizations_url":"https://api.github.com/users/joddie/orgs","repos_url":"https://api.github.com/users/joddie/repos","events_url":"https://api.github.com/users/joddie/events{/privacy}","received_events_url":"https://api.github.com/users/joddie/received_events","type":"User","site_admin":false},"repo":{"id":17386120,"name":"drupal-mode","full_name":"joddie/drupal-mode","owner":{"login":"joddie","id":1049744,"avatar_url":"https://avatars.githubusercontent.com/u/1049744?v=3","gravatar_id":"","url":"https://api.github.com/users/joddie","html_url":"https://github.com/joddie","followers_url":"https://api.github.com/users/joddie/followers","following_url":"https://api.github.com/users/joddie/following{/other_user}","gists_url":"https://api.github.com/users/joddie/gists{/gist_id}","starred_url":"https://api.github.com/users/joddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joddie/subscriptions","organizations_url":"https://api.github.com/users/joddie/orgs","repos_url":"https://api.github.com/users/joddie/repos","events_url":"https://api.github.com/users/joddie/events{/privacy}","received_events_url":"https://api.github.com/users/joddie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joddie/drupal-mode","description":"Advanced Emacs minor mode for Drupal development","fork":true,"url":"https://api.github.com/repos/joddie/drupal-mode","forks_url":"https://api.github.com/repos/joddie/drupal-mode/forks","keys_url":"https://api.github.com/repos/joddie/drupal-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joddie/drupal-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joddie/drupal-mode/teams","hooks_url":"https://api.github.com/repos/joddie/drupal-mode/hooks","issue_events_url":"https://api.github.com/repos/joddie/drupal-mode/issues/events{/number}","events_url":"https://api.github.com/repos/joddie/drupal-mode/events","assignees_url":"https://api.github.com/repos/joddie/drupal-mode/assignees{/user}","branches_url":"https://api.github.com/repos/joddie/drupal-mode/branches{/branch}","tags_url":"https://api.github.com/repos/joddie/drupal-mode/tags","blobs_url":"https://api.github.com/repos/joddie/drupal-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joddie/drupal-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joddie/drupal-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/joddie/drupal-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joddie/drupal-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/joddie/drupal-mode/languages","stargazers_url":"https://api.github.com/repos/joddie/drupal-mode/stargazers","contributors_url":"https://api.github.com/repos/joddie/drupal-mode/contributors","subscribers_url":"https://api.github.com/repos/joddie/drupal-mode/subscribers","subscription_url":"https://api.github.com/repos/joddie/drupal-mode/subscription","commits_url":"https://api.github.com/repos/joddie/drupal-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/joddie/drupal-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/joddie/drupal-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/joddie/drupal-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/joddie/drupal-mode/contents/{+path}","compare_url":"https://api.github.com/repos/joddie/drupal-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joddie/drupal-mode/merges","archive_url":"https://api.github.com/repos/joddie/drupal-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joddie/drupal-mode/downloads","issues_url":"https://api.github.com/repos/joddie/drupal-mode/issues{/number}","pulls_url":"https://api.github.com/repos/joddie/drupal-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/joddie/drupal-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/joddie/drupal-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joddie/drupal-mode/labels{/name}","releases_url":"https://api.github.com/repos/joddie/drupal-mode/releases{/id}","deployments_url":"https://api.github.com/repos/joddie/drupal-mode/deployments","created_at":"2014-03-04T01:14:09Z","updated_at":"2014-07-04T21:15:15Z","pushed_at":"2015-09-08T20:11:06Z","git_url":"git://github.com/joddie/drupal-mode.git","ssh_url":"git@github.com:joddie/drupal-mode.git","clone_url":"https://github.com/joddie/drupal-mode.git","svn_url":"https://github.com/joddie/drupal-mode","homepage":"http://marmalade-repo.org/packages/drupal-mode","size":406,"stargazers_count":1,"watchers_count":1,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"arnested:feature/site-alias","ref":"feature/site-alias","sha":"208f50aad91c1275e26ef6834610110afe441d9a","user":{"login":"arnested","id":190005,"avatar_url":"https://avatars.githubusercontent.com/u/190005?v=3","gravatar_id":"","url":"https://api.github.com/users/arnested","html_url":"https://github.com/arnested","followers_url":"https://api.github.com/users/arnested/followers","following_url":"https://api.github.com/users/arnested/following{/other_user}","gists_url":"https://api.github.com/users/arnested/gists{/gist_id}","starred_url":"https://api.github.com/users/arnested/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnested/subscriptions","organizations_url":"https://api.github.com/users/arnested/orgs","repos_url":"https://api.github.com/users/arnested/repos","events_url":"https://api.github.com/users/arnested/events{/privacy}","received_events_url":"https://api.github.com/users/arnested/received_events","type":"User","site_admin":false},"repo":{"id":3434851,"name":"drupal-mode","full_name":"arnested/drupal-mode","owner":{"login":"arnested","id":190005,"avatar_url":"https://avatars.githubusercontent.com/u/190005?v=3","gravatar_id":"","url":"https://api.github.com/users/arnested","html_url":"https://github.com/arnested","followers_url":"https://api.github.com/users/arnested/followers","following_url":"https://api.github.com/users/arnested/following{/other_user}","gists_url":"https://api.github.com/users/arnested/gists{/gist_id}","starred_url":"https://api.github.com/users/arnested/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnested/subscriptions","organizations_url":"https://api.github.com/users/arnested/orgs","repos_url":"https://api.github.com/users/arnested/repos","events_url":"https://api.github.com/users/arnested/events{/privacy}","received_events_url":"https://api.github.com/users/arnested/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arnested/drupal-mode","description":"Advanced Emacs minor mode for Drupal development","fork":false,"url":"https://api.github.com/repos/arnested/drupal-mode","forks_url":"https://api.github.com/repos/arnested/drupal-mode/forks","keys_url":"https://api.github.com/repos/arnested/drupal-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arnested/drupal-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arnested/drupal-mode/teams","hooks_url":"https://api.github.com/repos/arnested/drupal-mode/hooks","issue_events_url":"https://api.github.com/repos/arnested/drupal-mode/issues/events{/number}","events_url":"https://api.github.com/repos/arnested/drupal-mode/events","assignees_url":"https://api.github.com/repos/arnested/drupal-mode/assignees{/user}","branches_url":"https://api.github.com/repos/arnested/drupal-mode/branches{/branch}","tags_url":"https://api.github.com/repos/arnested/drupal-mode/tags","blobs_url":"https://api.github.com/repos/arnested/drupal-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arnested/drupal-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arnested/drupal-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/arnested/drupal-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arnested/drupal-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/arnested/drupal-mode/languages","stargazers_url":"https://api.github.com/repos/arnested/drupal-mode/stargazers","contributors_url":"https://api.github.com/repos/arnested/drupal-mode/contributors","subscribers_url":"https://api.github.com/repos/arnested/drupal-mode/subscribers","subscription_url":"https://api.github.com/repos/arnested/drupal-mode/subscription","commits_url":"https://api.github.com/repos/arnested/drupal-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/arnested/drupal-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/arnested/drupal-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/arnested/drupal-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/arnested/drupal-mode/contents/{+path}","compare_url":"https://api.github.com/repos/arnested/drupal-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arnested/drupal-mode/merges","archive_url":"https://api.github.com/repos/arnested/drupal-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arnested/drupal-mode/downloads","issues_url":"https://api.github.com/repos/arnested/drupal-mode/issues{/number}","pulls_url":"https://api.github.com/repos/arnested/drupal-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/arnested/drupal-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/arnested/drupal-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arnested/drupal-mode/labels{/name}","releases_url":"https://api.github.com/repos/arnested/drupal-mode/releases{/id}","deployments_url":"https://api.github.com/repos/arnested/drupal-mode/deployments","created_at":"2012-02-13T22:34:16Z","updated_at":"2016-03-26T20:53:54Z","pushed_at":"2016-04-20T19:59:13Z","git_url":"git://github.com/arnested/drupal-mode.git","ssh_url":"git@github.com:arnested/drupal-mode.git","clone_url":"https://github.com/arnested/drupal-mode.git","svn_url":"https://github.com/arnested/drupal-mode","homepage":"http://marmalade-repo.org/packages/drupal-mode","size":293,"stargazers_count":21,"watchers_count":21,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":11,"forks":13,"open_issues":11,"watchers":21,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/arnested/drupal-mode/pulls/68"},"html":{"href":"https://github.com/arnested/drupal-mode/pull/68"},"issue":{"href":"https://api.github.com/repos/arnested/drupal-mode/issues/68"},"comments":{"href":"https://api.github.com/repos/arnested/drupal-mode/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/arnested/drupal-mode/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/arnested/drupal-mode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arnested/drupal-mode/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/arnested/drupal-mode/statuses/685790c40da9e333c37a4e7ddb00040028711922"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"arnested","id":190005,"avatar_url":"https://avatars.githubusercontent.com/u/190005?v=3","gravatar_id":"","url":"https://api.github.com/users/arnested","html_url":"https://github.com/arnested","followers_url":"https://api.github.com/users/arnested/followers","following_url":"https://api.github.com/users/arnested/following{/other_user}","gists_url":"https://api.github.com/users/arnested/gists{/gist_id}","starred_url":"https://api.github.com/users/arnested/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnested/subscriptions","organizations_url":"https://api.github.com/users/arnested/orgs","repos_url":"https://api.github.com/users/arnested/repos","events_url":"https://api.github.com/users/arnested/events{/privacy}","received_events_url":"https://api.github.com/users/arnested/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":80,"additions":560,"deletions":104,"changed_files":10}}