1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-28 11:45:10 +00:00

Adding orgs

This commit is contained in:
VarMonke 2022-03-28 22:42:10 +05:30
parent b95f3b314a
commit f46eada1bb
4 changed files with 65 additions and 5 deletions

View file

@ -10,7 +10,7 @@ import asyncio
from . import http
from . import exceptions
from .objects import User, Repository
from .objects import User, Repository, Organization
class GHClient:
_auth = None
@ -83,7 +83,7 @@ class GHClient:
"""Fetch aGithub repository from it's name."""
return Repository(await http.get_repo_from_name(self.session, owner, repo_name), self.session)
async def get_org(self, org_name: str) -> 'Org':
async def get_org(self, org_name: str) -> Organization:
"""Fetch a Github organization from it's name"""
pass