Handle pull request comments #89
|
@ -78,10 +78,9 @@ import sys
|
|||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
from .seen_issues_db import SeenIssuesDB
|
||||
|
||||
from . import secrets
|
||||
from ._version import __version__ # noqa: F401
|
||||
from .seen_issues_db import SeenIssuesDB
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -169,11 +169,13 @@ class GiteaClient:
|
|||
response.raise_for_status()
|
||||
return response.json()
|
||||
|
||||
def get_pull_request_comments(self, owner: str, repo: str, pr_number: str) -> list[dict]:
|
||||
def get_pull_request_comments(
|
||||
self, owner: str, repo: str, pr_number: str,
|
||||
) -> list[dict]:
|
||||
"""
|
||||
Fetch comments for a pull request.
|
||||
"""
|
||||
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.raise_for_status()
|
||||
return response.json()
|
||||
|
|
Loading…
Reference in New Issue
Block a user