1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-17 22:45:08 +00:00

Post objects

This commit is contained in:
VarMonke 2022-04-04 20:19:53 +05:30
parent 66486211f3
commit 36c9c6eb6d
3 changed files with 18 additions and 1 deletions

View file

@ -125,6 +125,11 @@ class GHClient:
issue_number = kwargs.get('issue')
return await http.get_repo_issue(self.session, owner, repo_name, issue_number)
async def make_repo(self, **kwargs) -> Repository:
"""Create a new Github repository."""
name = kwargs.get('name')
return await http.make_repo(self.session, name)
async def get_org(self, **kwargs) -> Organization:
"""Fetch a Github organization from it's name"""
org_name = kwargs.get('org')