async def fetch_data(self) -> (GitHubCommitModel | None):
    'Get the latest data from GitHub.'
    result = (await self._client.repos.list_commits(self.repository, **{'params': {'per_page': 1}}))
    return (result.data[0] if result.data else None)
Get the latest data from GitHub.
async def fetch_data(self) -> (GitHubCommitModel | None):
    
    result = (await self._client.repos.list_commits(self.repository, **{'params': {'per_page': 1}}))
    return (result.data[0] if result.data else None)