Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identify_image_in_comment #975

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pr_agent/tools/pr_questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand Down