From 6bf093a6a12eccc7df73be9226d34ee886a53a6b Mon Sep 17 00:00:00 2001 From: Benedict Lee Date: Thu, 10 Apr 2025 19:41:43 +0900 Subject: [PATCH] refactor: Add GitHub provider check for conversation history Co-authored-by: ofir-frd <85901822+ofir-frd@users.noreply.github.com> --- pr_agent/tools/pr_line_questions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pr_agent/tools/pr_line_questions.py b/pr_agent/tools/pr_line_questions.py index aa8dfed1..0157a57b 100644 --- a/pr_agent/tools/pr_line_questions.py +++ b/pr_agent/tools/pr_line_questions.py @@ -61,7 +61,8 @@ class PR_LineQuestions: # self.git_provider.publish_comment("Preparing answer...", is_temporary=True) # set conversation history if enabled - if self.use_conversation_history: + # currently only supports GitHub provider + if self.use_conversation_history and isinstance(self.git_provider, GithubProvider): self._load_conversation_history() self.patch_with_lines = ""