mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
gfm_markdown
This commit is contained in:
@ -231,10 +231,14 @@ class PRDescription:
|
|||||||
pr_body += f"## {key}:\n"
|
pr_body += f"## {key}:\n"
|
||||||
if 'walkthrough' in key.lower():
|
if 'walkthrough' in key.lower():
|
||||||
# for filename, description in value.items():
|
# for filename, description in value.items():
|
||||||
|
if self.git_provider.is_supported("gfm_markdown"):
|
||||||
|
pr_body += "<details> <summary>files:</summary>\n"
|
||||||
for file in value:
|
for file in value:
|
||||||
filename = file['filename'].replace("'", "`")
|
filename = file['filename'].replace("'", "`")
|
||||||
description = file['changes in file']
|
description = file['changes in file']
|
||||||
pr_body += f'`{filename}`: {description}\n'
|
pr_body += f'`{filename}`: {description}\n'
|
||||||
|
if self.git_provider.is_supported("gfm_markdown"):
|
||||||
|
pr_body +="</details>\n"
|
||||||
else:
|
else:
|
||||||
# if the value is a list, join its items by comma
|
# if the value is a list, join its items by comma
|
||||||
if type(value) == list:
|
if type(value) == list:
|
||||||
|
Reference in New Issue
Block a user