mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-09 07:10:37 +08:00
add support for PR sequence diagram in description markers
This commit is contained in:
@ -538,6 +538,10 @@ class PRDescription:
|
||||
get_logger().error(f"Failing to process walkthrough {self.pr_id}: {e}")
|
||||
body = body.replace('pr_agent:walkthrough', "")
|
||||
|
||||
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)
|
||||
|
||||
return title, body, walkthrough_gfm, pr_file_changes
|
||||
|
||||
def _prepare_pr_answer(self) -> Tuple[str, str, str, List[dict]]:
|
||||
|
Reference in New Issue
Block a user