Compare commits
1 Commits
ffbab58c4d
...
e23ffd830a
Author | SHA1 | Date | |
---|---|---|---|
e23ffd830a |
|
@ -178,7 +178,8 @@ class GiteaClient:
|
||||||
"""
|
"""
|
||||||
Fetch comments for a pull request.
|
Fetch comments for a pull request.
|
||||||
"""
|
"""
|
||||||
pr_number = str(pr_number).rstrip('/').split('/')[-1]
|
# 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'
|
url = f'{self.gitea_url}/repos/{owner}/{repo}/pulls/{pr_number}/comments'
|
||||||
response = self.session.get(url)
|
response = self.session.get(url)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user