diff --git a/app/controllers/Releases.py b/app/controllers/Releases.py index fb97024..fd0618e 100644 --- a/app/controllers/Releases.py +++ b/app/controllers/Releases.py @@ -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") diff --git a/app/models/ResponseFields.py b/app/models/ResponseFields.py index 62beaa4..c663c09 100644 --- a/app/models/ResponseFields.py +++ b/app/models/ResponseFields.py @@ -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