refactor: Add GitHub provider check for conversation history

Co-authored-by: ofir-frd <85901822+ofir-frd@users.noreply.github.com>
This commit is contained in:
Benedict Lee 2025-04-10 19:41:43 +09:00 committed by GitHub
parent 8952459f6d
commit 6bf093a6a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = ""