{"action":"closed","number":3702,"pull_request":{"url":"https://api.github.com/repos/drush-ops/drush/pulls/3702","id":217826812,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3ODI2ODEy","html_url":"https://github.com/drush-ops/drush/pull/3702","diff_url":"https://github.com/drush-ops/drush/pull/3702.diff","patch_url":"https://github.com/drush-ops/drush/pull/3702.patch","issue_url":"https://api.github.com/repos/drush-ops/drush/issues/3702","number":3702,"state":"closed","locked":false,"title":"Backport #3687: preserve 'contrib' and 'custom' dir placements","user":{"login":"greg-1-anderson","id":612191,"node_id":"MDQ6VXNlcjYxMjE5MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/612191?v=4","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"body":"Use new features of the commandfile discovery class in the new version of the annotated command library, 2.9.1 to allow site-wide Drush extensions to be placed in contrib/custom directories without adding those names to the namespace, so the namespace of a command does not change if it moves from 'contrib' to 'custom'.\r\n\r\nI managed to make a version of the Behat Drush Endpoint that works with both Drush 8 and Drush 9. I'd like to backport #3687 so that the Drush 9 version of the same command can also work in Drush 8. Drush commands (site-wide or bundled with modules) could be made to work with both if they limited themselves to using only Drupal core APIs + the APIs of the module they are attached to + limited Drush features such as the logger and output formatters. A standalone project that provides test traits to make it easy to test this functionality would also be helpful.","created_at":"2018-09-25T00:45:43Z","updated_at":"2018-09-27T15:36:21Z","closed_at":"2018-09-27T15:36:20Z","merged_at":"2018-09-27T15:36:20Z","merge_commit_sha":"65f2f32b91fa0c00b060fb43642c5d3ae612a491","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/drush-ops/drush/pulls/3702/commits","review_comments_url":"https://api.github.com/repos/drush-ops/drush/pulls/3702/comments","review_comment_url":"https://api.github.com/repos/drush-ops/drush/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/3702/comments","statuses_url":"https://api.github.com/repos/drush-ops/drush/statuses/b6a08e3f6cf1de01f41b0df13dee9ede29919404","head":{"label":"drush-ops:preserve-contrib-dir-backport","ref":"preserve-contrib-dir-backport","sha":"b6a08e3f6cf1de01f41b0df13dee9ede29919404","user":{"login":"drush-ops","id":931201,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzMTIwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/931201?v=4","gravatar_id":"","url":"https://api.github.com/users/drush-ops","html_url":"https://github.com/drush-ops","followers_url":"https://api.github.com/users/drush-ops/followers","following_url":"https://api.github.com/users/drush-ops/following{/other_user}","gists_url":"https://api.github.com/users/drush-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/drush-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drush-ops/subscriptions","organizations_url":"https://api.github.com/users/drush-ops/orgs","repos_url":"https://api.github.com/users/drush-ops/repos","events_url":"https://api.github.com/users/drush-ops/events{/privacy}","received_events_url":"https://api.github.com/users/drush-ops/received_events","type":"Organization","site_admin":false},"repo":{"id":3193843,"node_id":"MDEwOlJlcG9zaXRvcnkzMTkzODQz","name":"drush","full_name":"drush-ops/drush","private":false,"owner":{"login":"drush-ops","id":931201,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzMTIwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/931201?v=4","gravatar_id":"","url":"https://api.github.com/users/drush-ops","html_url":"https://github.com/drush-ops","followers_url":"https://api.github.com/users/drush-ops/followers","following_url":"https://api.github.com/users/drush-ops/following{/other_user}","gists_url":"https://api.github.com/users/drush-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/drush-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drush-ops/subscriptions","organizations_url":"https://api.github.com/users/drush-ops/orgs","repos_url":"https://api.github.com/users/drush-ops/repos","events_url":"https://api.github.com/users/drush-ops/events{/privacy}","received_events_url":"https://api.github.com/users/drush-ops/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/drush-ops/drush","description":"Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.","fork":false,"url":"https://api.github.com/repos/drush-ops/drush","forks_url":"https://api.github.com/repos/drush-ops/drush/forks","keys_url":"https://api.github.com/repos/drush-ops/drush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drush-ops/drush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drush-ops/drush/teams","hooks_url":"https://api.github.com/repos/drush-ops/drush/hooks","issue_events_url":"https://api.github.com/repos/drush-ops/drush/issues/events{/number}","events_url":"https://api.github.com/repos/drush-ops/drush/events","assignees_url":"https://api.github.com/repos/drush-ops/drush/assignees{/user}","branches_url":"https://api.github.com/repos/drush-ops/drush/branches{/branch}","tags_url":"https://api.github.com/repos/drush-ops/drush/tags","blobs_url":"https://api.github.com/repos/drush-ops/drush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drush-ops/drush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drush-ops/drush/git/refs{/sha}","trees_url":"https://api.github.com/repos/drush-ops/drush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drush-ops/drush/statuses/{sha}","languages_url":"https://api.github.com/repos/drush-ops/drush/languages","stargazers_url":"https://api.github.com/repos/drush-ops/drush/stargazers","contributors_url":"https://api.github.com/repos/drush-ops/drush/contributors","subscribers_url":"https://api.github.com/repos/drush-ops/drush/subscribers","subscription_url":"https://api.github.com/repos/drush-ops/drush/subscription","commits_url":"https://api.github.com/repos/drush-ops/drush/commits{/sha}","git_commits_url":"https://api.github.com/repos/drush-ops/drush/git/commits{/sha}","comments_url":"https://api.github.com/repos/drush-ops/drush/comments{/number}","issue_comment_url":"https://api.github.com/repos/drush-ops/drush/issues/comments{/number}","contents_url":"https://api.github.com/repos/drush-ops/drush/contents/{+path}","compare_url":"https://api.github.com/repos/drush-ops/drush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drush-ops/drush/merges","archive_url":"https://api.github.com/repos/drush-ops/drush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drush-ops/drush/downloads","issues_url":"https://api.github.com/repos/drush-ops/drush/issues{/number}","pulls_url":"https://api.github.com/repos/drush-ops/drush/pulls{/number}","milestones_url":"https://api.github.com/repos/drush-ops/drush/milestones{/number}","notifications_url":"https://api.github.com/repos/drush-ops/drush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drush-ops/drush/labels{/name}","releases_url":"https://api.github.com/repos/drush-ops/drush/releases{/id}","deployments_url":"https://api.github.com/repos/drush-ops/drush/deployments","created_at":"2012-01-16T20:26:51Z","updated_at":"2018-09-26T15:43:46Z","pushed_at":"2018-09-27T15:36:20Z","git_url":"git://github.com/drush-ops/drush.git","ssh_url":"git@github.com:drush-ops/drush.git","clone_url":"https://github.com/drush-ops/drush.git","svn_url":"https://github.com/drush-ops/drush","homepage":"","size":19895,"stargazers_count":1884,"watchers_count":1884,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":915,"mirror_url":null,"archived":false,"open_issues_count":427,"license":null,"forks":915,"open_issues":427,"watchers":1884,"default_branch":"master"}},"base":{"label":"drush-ops:8.x","ref":"8.x","sha":"73a3c4899e0b197108fb1313b1d50bd298dd946e","user":{"login":"drush-ops","id":931201,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzMTIwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/931201?v=4","gravatar_id":"","url":"https://api.github.com/users/drush-ops","html_url":"https://github.com/drush-ops","followers_url":"https://api.github.com/users/drush-ops/followers","following_url":"https://api.github.com/users/drush-ops/following{/other_user}","gists_url":"https://api.github.com/users/drush-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/drush-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drush-ops/subscriptions","organizations_url":"https://api.github.com/users/drush-ops/orgs","repos_url":"https://api.github.com/users/drush-ops/repos","events_url":"https://api.github.com/users/drush-ops/events{/privacy}","received_events_url":"https://api.github.com/users/drush-ops/received_events","type":"Organization","site_admin":false},"repo":{"id":3193843,"node_id":"MDEwOlJlcG9zaXRvcnkzMTkzODQz","name":"drush","full_name":"drush-ops/drush","private":false,"owner":{"login":"drush-ops","id":931201,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzMTIwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/931201?v=4","gravatar_id":"","url":"https://api.github.com/users/drush-ops","html_url":"https://github.com/drush-ops","followers_url":"https://api.github.com/users/drush-ops/followers","following_url":"https://api.github.com/users/drush-ops/following{/other_user}","gists_url":"https://api.github.com/users/drush-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/drush-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drush-ops/subscriptions","organizations_url":"https://api.github.com/users/drush-ops/orgs","repos_url":"https://api.github.com/users/drush-ops/repos","events_url":"https://api.github.com/users/drush-ops/events{/privacy}","received_events_url":"https://api.github.com/users/drush-ops/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/drush-ops/drush","description":"Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.","fork":false,"url":"https://api.github.com/repos/drush-ops/drush","forks_url":"https://api.github.com/repos/drush-ops/drush/forks","keys_url":"https://api.github.com/repos/drush-ops/drush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drush-ops/drush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drush-ops/drush/teams","hooks_url":"https://api.github.com/repos/drush-ops/drush/hooks","issue_events_url":"https://api.github.com/repos/drush-ops/drush/issues/events{/number}","events_url":"https://api.github.com/repos/drush-ops/drush/events","assignees_url":"https://api.github.com/repos/drush-ops/drush/assignees{/user}","branches_url":"https://api.github.com/repos/drush-ops/drush/branches{/branch}","tags_url":"https://api.github.com/repos/drush-ops/drush/tags","blobs_url":"https://api.github.com/repos/drush-ops/drush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drush-ops/drush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drush-ops/drush/git/refs{/sha}","trees_url":"https://api.github.com/repos/drush-ops/drush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drush-ops/drush/statuses/{sha}","languages_url":"https://api.github.com/repos/drush-ops/drush/languages","stargazers_url":"https://api.github.com/repos/drush-ops/drush/stargazers","contributors_url":"https://api.github.com/repos/drush-ops/drush/contributors","subscribers_url":"https://api.github.com/repos/drush-ops/drush/subscribers","subscription_url":"https://api.github.com/repos/drush-ops/drush/subscription","commits_url":"https://api.github.com/repos/drush-ops/drush/commits{/sha}","git_commits_url":"https://api.github.com/repos/drush-ops/drush/git/commits{/sha}","comments_url":"https://api.github.com/repos/drush-ops/drush/comments{/number}","issue_comment_url":"https://api.github.com/repos/drush-ops/drush/issues/comments{/number}","contents_url":"https://api.github.com/repos/drush-ops/drush/contents/{+path}","compare_url":"https://api.github.com/repos/drush-ops/drush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drush-ops/drush/merges","archive_url":"https://api.github.com/repos/drush-ops/drush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drush-ops/drush/downloads","issues_url":"https://api.github.com/repos/drush-ops/drush/issues{/number}","pulls_url":"https://api.github.com/repos/drush-ops/drush/pulls{/number}","milestones_url":"https://api.github.com/repos/drush-ops/drush/milestones{/number}","notifications_url":"https://api.github.com/repos/drush-ops/drush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drush-ops/drush/labels{/name}","releases_url":"https://api.github.com/repos/drush-ops/drush/releases{/id}","deployments_url":"https://api.github.com/repos/drush-ops/drush/deployments","created_at":"2012-01-16T20:26:51Z","updated_at":"2018-09-26T15:43:46Z","pushed_at":"2018-09-27T15:36:20Z","git_url":"git://github.com/drush-ops/drush.git","ssh_url":"git@github.com:drush-ops/drush.git","clone_url":"https://github.com/drush-ops/drush.git","svn_url":"https://github.com/drush-ops/drush","homepage":"","size":19895,"stargazers_count":1884,"watchers_count":1884,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":915,"mirror_url":null,"archived":false,"open_issues_count":427,"license":null,"forks":915,"open_issues":427,"watchers":1884,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/3702"},"html":{"href":"https://github.com/drush-ops/drush/pull/3702"},"issue":{"href":"https://api.github.com/repos/drush-ops/drush/issues/3702"},"comments":{"href":"https://api.github.com/repos/drush-ops/drush/issues/3702/comments"},"review_comments":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/3702/comments"},"review_comment":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/3702/commits"},"statuses":{"href":"https://api.github.com/repos/drush-ops/drush/statuses/b6a08e3f6cf1de01f41b0df13dee9ede29919404"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"greg-1-anderson","id":612191,"node_id":"MDQ6VXNlcjYxMjE5MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/612191?v=4","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":410,"deletions":109,"changed_files":5}}
{"actor":{"display_login":"greg-1-anderson"}}