Closed pdelboca closed 4 years ago
Executing repo = self._get_owner(owner).create_repo(repo_name) inside create(...) method fails with the following error:
repo = self._get_owner(owner).create_repo(repo_name)
create(...)
*** UnknownObjectException: 404 {"documentation_url": "https://developer.github.com/v3/orgs/#get-an-organization", "message": "Not Found"}
GitHubStorage
I have created this account in order to use Github as a Backend, however the user object that the library gets is the following:
ipdb> pp self._user.raw_data { ... u'login': u'pdelboca-datopian', u'name': None, ... }
The name atribute is None since it does not correlates with the account (pdelboca-datopian), in fact the name attribute in github can be any string the user wants (like Patricio Del Boca) which is not gonna be useful.
name
None
pdelboca-datopian
Use self._user.login instead of self._user.name
self._user.login
self._user.name
Executing
repo = self._get_owner(owner).create_repo(repo_name)
insidecreate(...)
method fails with the following error:How to Reproduce
GitHubStorage
objectMore Info
I have created this account in order to use Github as a Backend, however the user object that the library gets is the following:
The
name
atribute isNone
since it does not correlates with the account (pdelboca-datopian
), in fact thename
attribute in github can be any string the user wants (like Patricio Del Boca) which is not gonna be useful.Proposed solution
Use
self._user.login
instead ofself._user.name