mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-07 06:10:39 +08:00
s
This commit is contained in:
@ -283,6 +283,8 @@ class PRDescription:
|
|||||||
if self.git_provider.is_supported("gfm_markdown"):
|
if self.git_provider.is_supported("gfm_markdown"):
|
||||||
# pr_body += f"<details> <summary>{semantic_label['label']}</summary>\n\n"
|
# pr_body += f"<details> <summary>{semantic_label['label']}</summary>\n\n"
|
||||||
pr_body += f"| **{s_label}** | <details><summary>files:</summary><ul>"
|
pr_body += f"| **{s_label}** | <details><summary>files:</summary><ul>"
|
||||||
|
else:
|
||||||
|
pr_body += f"| **{s_label}** | "
|
||||||
|
|
||||||
for file in semantic_label['files']:
|
for file in semantic_label['files']:
|
||||||
filename = file.replace("'", "`")
|
filename = file.replace("'", "`")
|
||||||
@ -298,9 +300,11 @@ class PRDescription:
|
|||||||
if self.git_provider.is_supported("gfm_markdown"):
|
if self.git_provider.is_supported("gfm_markdown"):
|
||||||
pr_body += f"<li>{filename}</li>"
|
pr_body += f"<li>{filename}</li>"
|
||||||
else:
|
else:
|
||||||
pr_body += f'- `{filename}`\n'
|
pr_body += f"{filename}    "
|
||||||
if self.git_provider.is_supported("gfm_markdown"):
|
if self.git_provider.is_supported("gfm_markdown"):
|
||||||
pr_body += "</ul></details>|\n"
|
pr_body += "</ul></details>|\n"
|
||||||
|
else:
|
||||||
|
pr_body += "|"
|
||||||
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 isinstance(value, list):
|
if isinstance(value, list):
|
||||||
|
Reference in New Issue
Block a user