add polling

This commit is contained in:
salberts
2023-07-08 08:52:11 +03:00
parent e63a4f47ce
commit 75167c2700
7 changed files with 85 additions and 13 deletions

View File

@ -13,12 +13,11 @@ from pr_agent.git_providers.git_provider import get_main_pr_language
class PRQuestions:
def __init__(self, pr_url: str, question_str: str, installation_id: Optional[int] = None):
def __init__(self, pr_url: str, question_str: str):
self.git_provider = get_git_provider()(pr_url)
self.main_pr_language = get_main_pr_language(
self.git_provider.get_languages(), self.git_provider.get_files()
)
self.installation_id = installation_id
self.ai_handler = AiHandler()
self.question_str = question_str
self.vars = {

View File

@ -15,7 +15,7 @@ from pr_agent.git_providers.git_provider import get_main_pr_language
class PRReviewer:
def __init__(self, pr_url: str, installation_id: Optional[int] = None, cli_mode=False):
def __init__(self, pr_url: str, cli_mode=False):
self.git_provider = get_git_provider()(pr_url)
self.main_language = get_main_pr_language(