mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-17 22:45:08 +00:00
Erroring
This commit is contained in:
parent
ed9c8ceee8
commit
c39e4c1ed6
5 changed files with 42 additions and 9 deletions
|
@ -79,9 +79,9 @@ class GHClient:
|
|||
"""Fetch a Github user from their username."""
|
||||
return User(await http.get_user(self.session, username), self.session)
|
||||
|
||||
async def get_repo(self, repo_name: str) -> Repository:
|
||||
async def get_repo(self, owner: str, repo_name: str) -> Repository:
|
||||
"""Fetch a Github repository from it's name."""
|
||||
pass
|
||||
return Repository(await http.get_repo_from_name(self.session, owner, repo_name), self.session)
|
||||
|
||||
async def get_org(self, org_name: str) -> 'Org':
|
||||
"""Fetch a Github organization from it's name"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue