1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-17 22:45:08 +00:00
This commit is contained in:
VarMonke 2022-03-27 22:33:18 +05:30
parent ed9c8ceee8
commit c39e4c1ed6
5 changed files with 42 additions and 9 deletions

View file

@ -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"""