mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 03:40:38 +08:00
DocHelper
This commit is contained in:
@ -188,13 +188,12 @@ class PRHelpMessage:
|
|||||||
relevant_snippets_numbers = response_yaml.get('relevant_snippets')
|
relevant_snippets_numbers = response_yaml.get('relevant_snippets')
|
||||||
|
|
||||||
if not relevant_snippets_numbers:
|
if not relevant_snippets_numbers:
|
||||||
|
get_logger().info(f"Could not find relevant snippets for the question: {self.question_str}")
|
||||||
if get_settings().config.publish_output:
|
if get_settings().config.publish_output:
|
||||||
answer_str = f"### Question: \n{self.question_str}\n\n"
|
answer_str = f"### Question: \n{self.question_str}\n\n"
|
||||||
answer_str += f"### Answer:\n\n"
|
answer_str += f"### Answer:\n\n"
|
||||||
answer_str += f"Could not find relevant information to answer the question. Please provide more details and try again."
|
answer_str += f"Could not find relevant information to answer the question. Please provide more details and try again."
|
||||||
self.git_provider.publish_comment(answer_str)
|
self.git_provider.publish_comment(answer_str)
|
||||||
else:
|
|
||||||
get_logger().info(f"Could not find relevant snippets for the question: {self.question_str}")
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
# prepare the answer
|
# prepare the answer
|
||||||
|
Reference in New Issue
Block a user