mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-30 06:24:27 +02:00
feat(contributors): show contributions count
This commit is contained in:
parent
7a6cde4fe3
commit
7e0f21e422
@ -109,7 +109,7 @@ class Releases:
|
|||||||
list: a list of dictionaries containing the repository's contributors
|
list: a list of dictionaries containing the repository's contributors
|
||||||
"""
|
"""
|
||||||
|
|
||||||
keep: set = {'login', 'avatar_url', 'html_url'}
|
keep: set = {'login', 'avatar_url', 'html_url', 'contributions'}
|
||||||
|
|
||||||
response = await self.httpx_client.get(f"https://api.github.com/repos/{repository}/contributors")
|
response = await self.httpx_client.get(f"https://api.github.com/repos/{repository}/contributors")
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ class ContributorFields(BaseModel):
|
|||||||
login: str
|
login: str
|
||||||
avatar_url: str
|
avatar_url: str
|
||||||
html_url: str
|
html_url: str
|
||||||
|
contributions: int
|
||||||
|
|
||||||
class ContributorsResponseFields(BaseModel):
|
class ContributorsResponseFields(BaseModel):
|
||||||
"""Implements the fields for each repository in the /contributors endpoint
|
"""Implements the fields for each repository in the /contributors endpoint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user