{"action":"created","issue":{"url":"https://api.github.com/repos/motemen/ghq/issues/81","repository_url":"https://api.github.com/repos/motemen/ghq","labels_url":"https://api.github.com/repos/motemen/ghq/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/motemen/ghq/issues/81/comments","events_url":"https://api.github.com/repos/motemen/ghq/issues/81/events","html_url":"https://github.com/motemen/ghq/pull/81","id":203014414,"number":81,"title":"When there is no slash in the argument, complement URL as $USER/repo","user":{"login":"b4b4r07","id":4442708,"avatar_url":"https://avatars1.githubusercontent.com/u/4442708?v=4","gravatar_id":"","url":"https://api.github.com/users/b4b4r07","html_url":"https://github.com/b4b4r07","followers_url":"https://api.github.com/users/b4b4r07/followers","following_url":"https://api.github.com/users/b4b4r07/following{/other_user}","gists_url":"https://api.github.com/users/b4b4r07/gists{/gist_id}","starred_url":"https://api.github.com/users/b4b4r07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b4b4r07/subscriptions","organizations_url":"https://api.github.com/users/b4b4r07/orgs","repos_url":"https://api.github.com/users/b4b4r07/repos","events_url":"https://api.github.com/users/b4b4r07/events{/privacy}","received_events_url":"https://api.github.com/users/b4b4r07/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-25T05:11:41Z","updated_at":"2017-08-18T05:33:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/motemen/ghq/pulls/81","html_url":"https://github.com/motemen/ghq/pull/81","diff_url":"https://github.com/motemen/ghq/pull/81.diff","patch_url":"https://github.com/motemen/ghq/pull/81.patch"},"body":"**FEATURE REQUEST**:\r\n\r\nWhen the URL is most omitted, I want *ghq(1)* to regard it as `$USER` instead of `repo`\r\n\r\nNow, completion as `my-repo/my-repo`\r\n\r\n```console\r\n$ ghq get my-repo\r\n     clone https://github.com/my-repo/my-repo -> /Users/b4b4r07/src/github.com/my-repo/my-repo\r\n       git clone https://github.com/my-repo/my-repo /Users/b4b4r07/src/github.com/my-repo/my-repo\r\nCloning into '/Users/b4b4r07/src/github.com/my-repo/my-repo'...\r\nremote: Repository not found.\r\nfatal: repository 'https://github.com/my-repo/my-repo/' not found\r\n     error /usr/local/bin/git: exit status 128\r\n```\r\n\r\nAfter merging this patch,\r\n\r\n```console\r\n$ ./ghq get my-repo\r\n     clone https://github.com/b4b4r07/my-repo -> /Users/b4b4r07/src/github.com/b4b4r07/my-repo\r\n       git clone https://github.com/b4b4r07/my-repo /Users/b4b4r07/src/github.com/b4b4r07/my-repo\r\nCloning into '/Users/b4b4r07/src/github.com/b4b4r07/my-repo'...\r\nremote: Counting objects: 3, done.\r\nremote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 3\r\nUnpacking objects: 100% (3/3), done.\r\n```\r\n\r\nAs a use case, it would be nice to be regarded as `$USER`! What do you think?"},"comment":{"url":"https://api.github.com/repos/motemen/ghq/issues/comments/323263583","html_url":"https://github.com/motemen/ghq/pull/81#issuecomment-323263583","issue_url":"https://api.github.com/repos/motemen/ghq/issues/81","id":323263583,"user":{"login":"motemen","id":8465,"avatar_url":"https://avatars2.githubusercontent.com/u/8465?v=4","gravatar_id":"","url":"https://api.github.com/users/motemen","html_url":"https://github.com/motemen","followers_url":"https://api.github.com/users/motemen/followers","following_url":"https://api.github.com/users/motemen/following{/other_user}","gists_url":"https://api.github.com/users/motemen/gists{/gist_id}","starred_url":"https://api.github.com/users/motemen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motemen/subscriptions","organizations_url":"https://api.github.com/users/motemen/orgs","repos_url":"https://api.github.com/users/motemen/repos","events_url":"https://api.github.com/users/motemen/events{/privacy}","received_events_url":"https://api.github.com/users/motemen/received_events","type":"User","site_admin":false},"created_at":"2017-08-18T05:33:08Z","updated_at":"2017-08-18T05:33:08Z","body":"LGTM, thanks!"}}
{"actor":{"display_login":"motemen"}}