mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-14 11:55:17 +00:00
fix suggestions
This commit is contained in:
parent
df8290a290
commit
aeb1bd8dbc
1 changed files with 3 additions and 2 deletions
|
|
@ -538,9 +538,10 @@ class PRDescription:
|
||||||
get_logger().error(f"Failing to process walkthrough {self.pr_id}: {e}")
|
get_logger().error(f"Failing to process walkthrough {self.pr_id}: {e}")
|
||||||
body = body.replace('pr_agent:walkthrough', "")
|
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')
|
ai_diagram = self.data.get('changes_diagram')
|
||||||
if ai_diagram and not re.search(r'<!--\s*pr_agent:diagram\s*-->', body):
|
if ai_diagram:
|
||||||
body = body.replace('pr_agent:diagram', 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
|
return title, body, walkthrough_gfm, pr_file_changes
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue