{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/41097594","id":41097594,"diff_hunk":"@@ -89,3 +89,13 @@ func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {\n \t\tc.Fatalf(\"failed to search with stars&automated&no-trunc options on the central registry: %s\", out)\n \t}\n }\n+\n+// search for repos which start with \"ubuntu-\" on the central registry\n+func (s *DockerSuite) TestSearchOnCentralRegistryWithDash(c *check.C) {\n+\ttestRequires(c, Network, DaemonIsLinux)\n+\n+\tout, exitCode := dockerCmd(c, \"search\", \"ubuntu-\")\n+\tif exitCode != 0 {","path":"integration-cli/docker_cli_search_test.go","position":10,"original_position":10,"commit_id":"c61d121dae6b5a5a1c13866fbb0b233cc0c69c72","original_commit_id":"c61d121dae6b5a5a1c13866fbb0b233cc0c69c72","user":{"login":"vdemeester","id":6508,"avatar_url":"https://avatars.githubusercontent.com/u/6508?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"body":"You could use : \r\n```go\r\nc.Assert(exitCode, checker.Equals, 0, check.Commentf(\"failed to search on the central registry: %s\", out))\r\n```","created_at":"2015-10-04T13:09:10Z","updated_at":"2015-10-04T13:09:10Z","html_url":"https://github.com/docker/docker/pull/16509#discussion_r41097594","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/16509","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/41097594"},"html":{"href":"https://github.com/docker/docker/pull/16509#discussion_r41097594"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/16509"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/16509","id":45742558,"html_url":"https://github.com/docker/docker/pull/16509","diff_url":"https://github.com/docker/docker/pull/16509.diff","patch_url":"https://github.com/docker/docker/pull/16509.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/16509","number":16509,"state":"open","locked":false,"title":"Fix docker search problem","user":{"login":"HuKeping","id":9958621,"avatar_url":"https://avatars.githubusercontent.com/u/9958621?v=3","gravatar_id":"","url":"https://api.github.com/users/HuKeping","html_url":"https://github.com/HuKeping","followers_url":"https://api.github.com/users/HuKeping/followers","following_url":"https://api.github.com/users/HuKeping/following{/other_user}","gists_url":"https://api.github.com/users/HuKeping/gists{/gist_id}","starred_url":"https://api.github.com/users/HuKeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuKeping/subscriptions","organizations_url":"https://api.github.com/users/HuKeping/orgs","repos_url":"https://api.github.com/users/HuKeping/repos","events_url":"https://api.github.com/users/HuKeping/events{/privacy}","received_events_url":"https://api.github.com/users/HuKeping/received_events","type":"User","site_admin":false},"body":"Fixes: https://github.com/docker/docker/issues/16155\r\n\r\nSearch terms shouldn't be restricted to only full valid repository\r\nnames. It should be perfectly valid to search using a part of a name,\r\neven if it ends with a period, dash or underscore.\r\n\r\nSigned-off-by: Hu Keping <hukeping@huawei.com>","created_at":"2015-09-23T04:17:33Z","updated_at":"2015-10-04T13:09:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdb0b03b57f525b6d7de641e6632d2ec9d50420a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/16509/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/16509/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/16509/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/c61d121dae6b5a5a1c13866fbb0b233cc0c69c72","head":{"label":"HuKeping:search-problem","ref":"search-problem","sha":"c61d121dae6b5a5a1c13866fbb0b233cc0c69c72","user":{"login":"HuKeping","id":9958621,"avatar_url":"https://avatars.githubusercontent.com/u/9958621?v=3","gravatar_id":"","url":"https://api.github.com/users/HuKeping","html_url":"https://github.com/HuKeping","followers_url":"https://api.github.com/users/HuKeping/followers","following_url":"https://api.github.com/users/HuKeping/following{/other_user}","gists_url":"https://api.github.com/users/HuKeping/gists{/gist_id}","starred_url":"https://api.github.com/users/HuKeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuKeping/subscriptions","organizations_url":"https://api.github.com/users/HuKeping/orgs","repos_url":"https://api.github.com/users/HuKeping/repos","events_url":"https://api.github.com/users/HuKeping/events{/privacy}","received_events_url":"https://api.github.com/users/HuKeping/received_events","type":"User","site_admin":false},"repo":{"id":28956765,"name":"docker","full_name":"HuKeping/docker","owner":{"login":"HuKeping","id":9958621,"avatar_url":"https://avatars.githubusercontent.com/u/9958621?v=3","gravatar_id":"","url":"https://api.github.com/users/HuKeping","html_url":"https://github.com/HuKeping","followers_url":"https://api.github.com/users/HuKeping/followers","following_url":"https://api.github.com/users/HuKeping/following{/other_user}","gists_url":"https://api.github.com/users/HuKeping/gists{/gist_id}","starred_url":"https://api.github.com/users/HuKeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuKeping/subscriptions","organizations_url":"https://api.github.com/users/HuKeping/orgs","repos_url":"https://api.github.com/users/HuKeping/repos","events_url":"https://api.github.com/users/HuKeping/events{/privacy}","received_events_url":"https://api.github.com/users/HuKeping/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HuKeping/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/HuKeping/docker","forks_url":"https://api.github.com/repos/HuKeping/docker/forks","keys_url":"https://api.github.com/repos/HuKeping/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HuKeping/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HuKeping/docker/teams","hooks_url":"https://api.github.com/repos/HuKeping/docker/hooks","issue_events_url":"https://api.github.com/repos/HuKeping/docker/issues/events{/number}","events_url":"https://api.github.com/repos/HuKeping/docker/events","assignees_url":"https://api.github.com/repos/HuKeping/docker/assignees{/user}","branches_url":"https://api.github.com/repos/HuKeping/docker/branches{/branch}","tags_url":"https://api.github.com/repos/HuKeping/docker/tags","blobs_url":"https://api.github.com/repos/HuKeping/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HuKeping/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HuKeping/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/HuKeping/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HuKeping/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/HuKeping/docker/languages","stargazers_url":"https://api.github.com/repos/HuKeping/docker/stargazers","contributors_url":"https://api.github.com/repos/HuKeping/docker/contributors","subscribers_url":"https://api.github.com/repos/HuKeping/docker/subscribers","subscription_url":"https://api.github.com/repos/HuKeping/docker/subscription","commits_url":"https://api.github.com/repos/HuKeping/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/HuKeping/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/HuKeping/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/HuKeping/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/HuKeping/docker/contents/{+path}","compare_url":"https://api.github.com/repos/HuKeping/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HuKeping/docker/merges","archive_url":"https://api.github.com/repos/HuKeping/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HuKeping/docker/downloads","issues_url":"https://api.github.com/repos/HuKeping/docker/issues{/number}","pulls_url":"https://api.github.com/repos/HuKeping/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/HuKeping/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/HuKeping/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HuKeping/docker/labels{/name}","releases_url":"https://api.github.com/repos/HuKeping/docker/releases{/id}","created_at":"2015-01-08T08:37:37Z","updated_at":"2015-05-05T01:37:55Z","pushed_at":"2015-10-04T09:45:48Z","git_url":"git://github.com/HuKeping/docker.git","ssh_url":"git@github.com:HuKeping/docker.git","clone_url":"https://github.com/HuKeping/docker.git","svn_url":"https://github.com/HuKeping/docker","homepage":"http://www.docker.com","size":68913,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"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":"docker:master","ref":"master","sha":"2fcacf8ea3898b731828866f09df3ccd8bfb8f9b","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-10-04T13:07:55Z","pushed_at":"2015-10-04T12:12:51Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":263050,"stargazers_count":25195,"watchers_count":25195,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6593,"mirror_url":null,"open_issues_count":1118,"forks":6593,"open_issues":1118,"watchers":25195,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/16509"},"html":{"href":"https://github.com/docker/docker/pull/16509"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/16509"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/16509/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/16509/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/16509/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/c61d121dae6b5a5a1c13866fbb0b233cc0c69c72"}}}}