mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-09 15:20:39 +08:00
fix suggestions
This commit is contained in:
@ -538,9 +538,10 @@ class PRDescription:
|
||||
get_logger().error(f"Failing to process walkthrough {self.pr_id}: {e}")
|
||||
body = body.replace('pr_agent:walkthrough', "")
|
||||
|
||||
# Add support for pr_agent:diagram marker (plain and HTML comment formats)
|
||||
ai_diagram = self.data.get('changes_diagram')
|
||||
if ai_diagram and not re.search(r'<!--\s*pr_agent:diagram\s*-->', body):
|
||||
body = body.replace('pr_agent:diagram', ai_diagram)
|
||||
if ai_diagram:
|
||||
body = re.sub(r'<!--\s*pr_agent:diagram\s*-->|pr_agent:diagram', ai_diagram, body)
|
||||
|
||||
return title, body, walkthrough_gfm, pr_file_changes
|
||||
|
||||
|
Reference in New Issue
Block a user