mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-29 22:14:28 +02:00
Merge pull request #49 from Ushie/feat/contributors/contributions
feat(contributors): show contributions count
This commit is contained in:
commit
46248cd2e1
@ -110,7 +110,7 @@ class Releases:
|
||||
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")
|
||||
|
||||
|
@ -53,6 +53,7 @@ class ContributorFields(BaseModel):
|
||||
login: str
|
||||
avatar_url: str
|
||||
html_url: str
|
||||
contributions: int
|
||||
|
||||
class ContributorsResponseFields(BaseModel):
|
||||
"""Implements the fields for each repository in the /contributors endpoint
|
||||
|
Loading…
x
Reference in New Issue
Block a user