fix: sanitize PR number to handle full URL in get_pull_request_comments
This commit is contained in:
parent
e56463d207
commit
e23ffd830a
|
@ -178,6 +178,8 @@ class GiteaClient:
|
|||
"""
|
||||
Fetch comments for a pull request.
|
||||
"""
|
||||
# sanitize pr_number to ensure it's just the numeric ID, not a full URL
|
||||
pr_number = 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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user