From 195f8a03abbde76ff6f89bfde48471b8b1c202fd Mon Sep 17 00:00:00 2001 From: BrianTeeman Date: Sun, 16 Jun 2024 17:33:23 +0100 Subject: [PATCH] identify_image_in_comment Correct the spelling Fix spelling errors now will prevent issues going forward where people have to misspell something on purpose --- pr_agent/tools/pr_questions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_agent/tools/pr_questions.py b/pr_agent/tools/pr_questions.py index 3e6355f51..38efa13fe 100644 --- a/pr_agent/tools/pr_questions.py +++ b/pr_agent/tools/pr_questions.py @@ -59,7 +59,7 @@ async def run(self): self.git_provider.publish_comment("Preparing answer...", is_temporary=True) # identify image - img_path = self.idenfity_image_in_comment() + img_path = self.identify_image_in_comment() if img_path: get_logger().debug(f"Image path identified", artifact=img_path) @@ -78,7 +78,7 @@ async def run(self): self.git_provider.remove_initial_comment() return "" - def idenfity_image_in_comment(self): + def identify_image_in_comment(self): img_path = '' if '![image]' in self.question_str: # assuming structure: