fix: extract PR number correctly to fix pull request comments URL
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s

This commit is contained in:
Jon Michael Aanes (aider) 2025-04-23 17:19:51 +02:00
parent e56463d207
commit ffbab58c4d

View File

@ -178,6 +178,7 @@ class GiteaClient:
"""
Fetch comments for a pull request.
"""
pr_number = str(pr_number).rstrip('/').split('/')[-1]
url = f'{self.gitea_url}/repos/{owner}/{repo}/pulls/{pr_number}/comments'
response = self.session.get(url)
response.raise_for_status()