mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
identify_image_in_comment
Correct the spelling Fix spelling errors now will prevent issues going forward where people have to misspell something on purpose
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user