{"action":"closed","issue":{"url":"https://api.github.com/repos/guyzmo/git-repo/issues/74","repository_url":"https://api.github.com/repos/guyzmo/git-repo","labels_url":"https://api.github.com/repos/guyzmo/git-repo/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/guyzmo/git-repo/issues/74/comments","events_url":"https://api.github.com/repos/guyzmo/git-repo/issues/74/events","html_url":"https://github.com/guyzmo/git-repo/issues/74","id":191525911,"number":74,"title":"When launched with no credentials, throw a userfriendly error","user":{"login":"guyzmo","id":254441,"avatar_url":"https://avatars.githubusercontent.com/u/254441?v=3","gravatar_id":"","url":"https://api.github.com/users/guyzmo","html_url":"https://github.com/guyzmo","followers_url":"https://api.github.com/users/guyzmo/followers","following_url":"https://api.github.com/users/guyzmo/following{/other_user}","gists_url":"https://api.github.com/users/guyzmo/gists{/gist_id}","starred_url":"https://api.github.com/users/guyzmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyzmo/subscriptions","organizations_url":"https://api.github.com/users/guyzmo/orgs","repos_url":"https://api.github.com/users/guyzmo/repos","events_url":"https://api.github.com/users/guyzmo/events{/privacy}","received_events_url":"https://api.github.com/users/guyzmo/received_events","type":"User","site_admin":false},"labels":[{"id":347938629,"url":"https://api.github.com/repos/guyzmo/git-repo/labels/bug","name":"bug","color":"ee0701","default":true},{"id":387939293,"url":"https://api.github.com/repos/guyzmo/git-repo/labels/ready","name":"ready","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/guyzmo/git-repo/milestones/1","html_url":"https://github.com/guyzmo/git-repo/milestones/1.7","labels_url":"https://api.github.com/repos/guyzmo/git-repo/milestones/1/labels","id":1788641,"number":1,"title":"1.7","description":"CLI improvements","creator":{"login":"guyzmo","id":254441,"avatar_url":"https://avatars.githubusercontent.com/u/254441?v=3","gravatar_id":"","url":"https://api.github.com/users/guyzmo","html_url":"https://github.com/guyzmo","followers_url":"https://api.github.com/users/guyzmo/followers","following_url":"https://api.github.com/users/guyzmo/following{/other_user}","gists_url":"https://api.github.com/users/guyzmo/gists{/gist_id}","starred_url":"https://api.github.com/users/guyzmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyzmo/subscriptions","organizations_url":"https://api.github.com/users/guyzmo/orgs","repos_url":"https://api.github.com/users/guyzmo/repos","events_url":"https://api.github.com/users/guyzmo/events{/privacy}","received_events_url":"https://api.github.com/users/guyzmo/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":24,"state":"open","created_at":"2016-05-25T22:53:58Z","updated_at":"2016-11-25T00:59:55Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-11-24T13:55:44Z","updated_at":"2016-11-25T00:59:55Z","closed_at":"2016-11-25T00:59:55Z","body":"Instead of having the following when no credentials has been set:\r\n\r\n```\r\n% git-repo hub -vvv create toto/test\r\nFatal error: 'GithubService' object has no attribute 'username'\r\n------------------------------------\r\nTraceback (most recent call last):\r\n  File \"…/git_repo/repo.py\", line 522, in main\r\n    return GitRepoRunner(args).run()\r\n  File \"…/git_repo/kwargparse.py\", line 68, in run\r\n    return self._action_dict[frozenset(args)](self)\r\n  File \"…/git_repo/repo.py\", line 352, in do_create\r\n    service.create(self.user_name, self.repo_name, add=self.add)\r\n  File \"…/git_repo/services/ext/github.py\", line 37, in create\r\n    if user != self.username:\r\nAttributeError: 'GithubService' object has no attribute 'username'\r\n```\r\n\r\nmake GithubService throw a **real** error. Reported in #69."}}
{"actor":{"display_login":"guyzmo"}}