{"action":"closed","number":9171,"pull_request":{"url":"https://api.github.com/repos/dotnet/cli/pulls/9171","id":184853894,"html_url":"https://github.com/dotnet/cli/pull/9171","diff_url":"https://github.com/dotnet/cli/pull/9171.diff","patch_url":"https://github.com/dotnet/cli/pull/9171.patch","issue_url":"https://api.github.com/repos/dotnet/cli/issues/9171","number":9171,"state":"closed","locked":false,"title":"Use NuGet autocomplete API for add-package suggestions","user":{"login":"svick","id":287848,"avatar_url":"https://avatars3.githubusercontent.com/u/287848?v=4","gravatar_id":"","url":"https://api.github.com/users/svick","html_url":"https://github.com/svick","followers_url":"https://api.github.com/users/svick/followers","following_url":"https://api.github.com/users/svick/following{/other_user}","gists_url":"https://api.github.com/users/svick/gists{/gist_id}","starred_url":"https://api.github.com/users/svick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svick/subscriptions","organizations_url":"https://api.github.com/users/svick/orgs","repos_url":"https://api.github.com/users/svick/repos","events_url":"https://api.github.com/users/svick/events{/privacy}","received_events_url":"https://api.github.com/users/svick/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/dotnet/cli/issues/9128.\r\n\r\nSince `dotnet add package` doesn't work by default with prerelease packages, and since autcompletion is a convenience feature to make common use easier, I have also removed `prerelease=true`.\r\n\r\nOutput from `dotnet complete` for my examples from https://github.com/dotnet/cli/issues/9128 is [here](https://gist.github.com/svick/a29fda60d5923da0a3aa3b067ec1c556). Notice that `dotnet complete \"dotnet add package Microsoft.CodeA\"` now doesn't output anything, I have opened an issue for that: https://github.com/NuGet/NuGetGallery/issues/5858.","created_at":"2018-04-29T20:46:54Z","updated_at":"2018-05-01T22:39:13Z","closed_at":"2018-05-01T22:39:13Z","merged_at":"2018-05-01T22:39:13Z","merge_commit_sha":"6c9942bae6830a4f5b370d978d56b21807be49ba","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":728503141,"url":"https://api.github.com/repos/dotnet/cli/labels/community","name":"community","color":"009800","default":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/21","html_url":"https://github.com/dotnet/cli/milestone/21","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/21/labels","id":3271800,"number":21,"title":"2.2.1xx","description":"","creator":{"login":"livarcocc","id":367554,"avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2018-04-16T19:04:51Z","updated_at":"2018-05-01T22:39:13Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/dotnet/cli/pulls/9171/commits","review_comments_url":"https://api.github.com/repos/dotnet/cli/pulls/9171/comments","review_comment_url":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/9171/comments","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/c2d80d188330de414a8f12d08994ad7f2bb3a0f0","head":{"label":"svick:autocomplete-package","ref":"autocomplete-package","sha":"c2d80d188330de414a8f12d08994ad7f2bb3a0f0","user":{"login":"svick","id":287848,"avatar_url":"https://avatars3.githubusercontent.com/u/287848?v=4","gravatar_id":"","url":"https://api.github.com/users/svick","html_url":"https://github.com/svick","followers_url":"https://api.github.com/users/svick/followers","following_url":"https://api.github.com/users/svick/following{/other_user}","gists_url":"https://api.github.com/users/svick/gists{/gist_id}","starred_url":"https://api.github.com/users/svick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svick/subscriptions","organizations_url":"https://api.github.com/users/svick/orgs","repos_url":"https://api.github.com/users/svick/repos","events_url":"https://api.github.com/users/svick/events{/privacy}","received_events_url":"https://api.github.com/users/svick/received_events","type":"User","site_admin":false},"repo":{"id":55317077,"name":"cli","full_name":"svick/cli","owner":{"login":"svick","id":287848,"avatar_url":"https://avatars3.githubusercontent.com/u/287848?v=4","gravatar_id":"","url":"https://api.github.com/users/svick","html_url":"https://github.com/svick","followers_url":"https://api.github.com/users/svick/followers","following_url":"https://api.github.com/users/svick/following{/other_user}","gists_url":"https://api.github.com/users/svick/gists{/gist_id}","starred_url":"https://api.github.com/users/svick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svick/subscriptions","organizations_url":"https://api.github.com/users/svick/orgs","repos_url":"https://api.github.com/users/svick/repos","events_url":"https://api.github.com/users/svick/events{/privacy}","received_events_url":"https://api.github.com/users/svick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/svick/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":true,"url":"https://api.github.com/repos/svick/cli","forks_url":"https://api.github.com/repos/svick/cli/forks","keys_url":"https://api.github.com/repos/svick/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/svick/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/svick/cli/teams","hooks_url":"https://api.github.com/repos/svick/cli/hooks","issue_events_url":"https://api.github.com/repos/svick/cli/issues/events{/number}","events_url":"https://api.github.com/repos/svick/cli/events","assignees_url":"https://api.github.com/repos/svick/cli/assignees{/user}","branches_url":"https://api.github.com/repos/svick/cli/branches{/branch}","tags_url":"https://api.github.com/repos/svick/cli/tags","blobs_url":"https://api.github.com/repos/svick/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/svick/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/svick/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/svick/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/svick/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/svick/cli/languages","stargazers_url":"https://api.github.com/repos/svick/cli/stargazers","contributors_url":"https://api.github.com/repos/svick/cli/contributors","subscribers_url":"https://api.github.com/repos/svick/cli/subscribers","subscription_url":"https://api.github.com/repos/svick/cli/subscription","commits_url":"https://api.github.com/repos/svick/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/svick/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/svick/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/svick/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/svick/cli/contents/{+path}","compare_url":"https://api.github.com/repos/svick/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/svick/cli/merges","archive_url":"https://api.github.com/repos/svick/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/svick/cli/downloads","issues_url":"https://api.github.com/repos/svick/cli/issues{/number}","pulls_url":"https://api.github.com/repos/svick/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/svick/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/svick/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/svick/cli/labels{/name}","releases_url":"https://api.github.com/repos/svick/cli/releases{/id}","deployments_url":"https://api.github.com/repos/svick/cli/deployments","created_at":"2016-04-02T21:30:03Z","updated_at":"2018-04-29T20:46:17Z","pushed_at":"2018-05-01T17:21:52Z","git_url":"git://github.com/svick/cli.git","ssh_url":"git@github.com:svick/cli.git","clone_url":"https://github.com/svick/cli.git","svn_url":"https://github.com/svick/cli","homepage":"http://dotnet.github.io/","size":37715,"stargazers_count":0,"watchers_count":0,"language":"C#","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,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"8c937a0db08e56660aca456ac088f2d0e70735ab","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":43568107,"name":"cli","full_name":"dotnet/cli","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":false,"url":"https://api.github.com/repos/dotnet/cli","forks_url":"https://api.github.com/repos/dotnet/cli/forks","keys_url":"https://api.github.com/repos/dotnet/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/cli/teams","hooks_url":"https://api.github.com/repos/dotnet/cli/hooks","issue_events_url":"https://api.github.com/repos/dotnet/cli/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/cli/events","assignees_url":"https://api.github.com/repos/dotnet/cli/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/cli/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/cli/tags","blobs_url":"https://api.github.com/repos/dotnet/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/cli/languages","stargazers_url":"https://api.github.com/repos/dotnet/cli/stargazers","contributors_url":"https://api.github.com/repos/dotnet/cli/contributors","subscribers_url":"https://api.github.com/repos/dotnet/cli/subscribers","subscription_url":"https://api.github.com/repos/dotnet/cli/subscription","commits_url":"https://api.github.com/repos/dotnet/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/cli/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/cli/merges","archive_url":"https://api.github.com/repos/dotnet/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/cli/downloads","issues_url":"https://api.github.com/repos/dotnet/cli/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/cli/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/cli/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/cli/deployments","created_at":"2015-10-02T18:03:15Z","updated_at":"2018-05-01T17:13:25Z","pushed_at":"2018-05-01T22:39:13Z","git_url":"git://github.com/dotnet/cli.git","ssh_url":"git@github.com:dotnet/cli.git","clone_url":"https://github.com/dotnet/cli.git","svn_url":"https://github.com/dotnet/cli","homepage":"https://github.com/dotnet/core","size":40001,"stargazers_count":2688,"watchers_count":2688,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":851,"mirror_url":null,"archived":false,"open_issues_count":416,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":851,"open_issues":416,"watchers":2688,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/9171"},"html":{"href":"https://github.com/dotnet/cli/pull/9171"},"issue":{"href":"https://api.github.com/repos/dotnet/cli/issues/9171"},"comments":{"href":"https://api.github.com/repos/dotnet/cli/issues/9171/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/cli/pulls/9171/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/cli/pulls/9171/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/cli/statuses/c2d80d188330de414a8f12d08994ad7f2bb3a0f0"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"wli3","id":6993335,"avatar_url":"https://avatars1.githubusercontent.com/u/6993335?v=4","gravatar_id":"","url":"https://api.github.com/users/wli3","html_url":"https://github.com/wli3","followers_url":"https://api.github.com/users/wli3/followers","following_url":"https://api.github.com/users/wli3/following{/other_user}","gists_url":"https://api.github.com/users/wli3/gists{/gist_id}","starred_url":"https://api.github.com/users/wli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wli3/subscriptions","organizations_url":"https://api.github.com/users/wli3/orgs","repos_url":"https://api.github.com/users/wli3/repos","events_url":"https://api.github.com/users/wli3/events{/privacy}","received_events_url":"https://api.github.com/users/wli3/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"wli3"}}