Merge pull request #975 from brianteeman/identify_image_in_comment

identify_image_in_comment
This commit is contained in:
Tal
2024-06-17 08:41:35 +03:00
committed by GitHub

View File

@ -59,7 +59,7 @@ class PRQuestions:
self.git_provider.publish_comment("Preparing answer...", is_temporary=True) self.git_provider.publish_comment("Preparing answer...", is_temporary=True)
# identify image # identify image
img_path = self.idenfity_image_in_comment() img_path = self.identify_image_in_comment()
if img_path: if img_path:
get_logger().debug(f"Image path identified", artifact=img_path) get_logger().debug(f"Image path identified", artifact=img_path)
@ -78,7 +78,7 @@ class PRQuestions:
self.git_provider.remove_initial_comment() self.git_provider.remove_initial_comment()
return "" return ""
def idenfity_image_in_comment(self): def identify_image_in_comment(self):
img_path = '' img_path = ''
if '![image]' in self.question_str: if '![image]' in self.question_str:
# assuming structure: # assuming structure: