mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-29 04:05:11 +00:00
Add codes of conduct routes
This commit is contained in:
parent
a3ce851e55
commit
464c830ebc
1 changed files with 9 additions and 1 deletions
|
@ -48,7 +48,7 @@ class RateLimits(NamedTuple):
|
||||||
# Billing
|
# Billing
|
||||||
# Branches
|
# Branches
|
||||||
# Checks
|
# Checks
|
||||||
# Codes of conduct
|
# Codes of conduct DONE
|
||||||
# Code Scanning
|
# Code Scanning
|
||||||
# Codespaces
|
# Codespaces
|
||||||
# Collaborators
|
# Collaborators
|
||||||
|
@ -855,3 +855,11 @@ class HTTPClient:
|
||||||
|
|
||||||
async def get_emojis(self) -> Dict[str, str]:
|
async def get_emojis(self) -> Dict[str, str]:
|
||||||
return await self.request("GET", "/emojis")
|
return await self.request("GET", "/emojis")
|
||||||
|
|
||||||
|
# === CODES OF CONDUCT === #
|
||||||
|
|
||||||
|
async def get_all_codes_of_conduct(self):
|
||||||
|
return await self.request("GET", "/codes_of_conduct")
|
||||||
|
|
||||||
|
async def get_code_of_conduct(self, *, key: str):
|
||||||
|
return await self.request("GET", f"/codes_of_conduct/{key}")
|
Loading…
Add table
Add a link
Reference in a new issue