mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 23:10:17 +00:00
adding organization model and relevant helpers
This commit is contained in:
@@ -156,6 +156,9 @@ class Github(GithubCore):
|
||||
"""Get the authenticated user."""
|
||||
return self._get_resource(('repos', username, reponame), Repo)
|
||||
|
||||
def get_org(self, login):
|
||||
"""Get organization."""
|
||||
return self._get_resource(('orgs', login), Org)
|
||||
|
||||
|
||||
class ResponseError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user