diff --git a/github/GithubObjects.py b/github/GithubObjects.py index 131e4e69..7aa7dc61 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -389,7 +389,7 @@ Repository._addAttributePolicy( SeveralAttributePolicies( [ ] ) ) __repoElementCreatable = ElementCreatable( [ "name" ], [ "description", "homepage", "private", "has_issues", "has_wiki", "has_downloads", "team_id", ] ) -__repoElementGetable = ElementGetable( [ "name" ], [], { "owner" : lambda user: user } ) +__repoElementGetable = ElementGetable( [ "name" ], [], { "owner" : lambda user: { "login": user.login } } ) __repoListGetable = ListGetable( [], [ "type" ] ) AuthenticatedUser._addAttributePolicy( ExternalListOfObjects( "repos", "repo", Repository,