mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-06 22:00:40 +08:00
review_v2
This commit is contained in:
@ -197,11 +197,10 @@ def convert_to_markdown_v2(output_data: dict, gfm_supported: bool = True, increm
|
|||||||
}
|
}
|
||||||
markdown_text = ""
|
markdown_text = ""
|
||||||
if not incremental_review:
|
if not incremental_review:
|
||||||
markdown_text += f"## PR Reviewer Guide 🔍\n\n"
|
markdown_text += f"{PRReviewHeader.REGULAR.value} 🔍\n\n"
|
||||||
else:
|
else:
|
||||||
markdown_text += f"## Incremental PR Reviewer Guide 🔍\n\n"
|
markdown_text += f"{PRReviewHeader.INCREMENTAL.value} 🔍\n\n"
|
||||||
markdown_text += f"⏮️ Review for commits since previous PR-Agent review {incremental_review}.\n\n"
|
markdown_text += f"⏮️ Review for commits since previous PR-Agent review {incremental_review}.\n\n"
|
||||||
|
|
||||||
# if not output_data or not output_data.get('review', {}):
|
# if not output_data or not output_data.get('review', {}):
|
||||||
# return ""
|
# return ""
|
||||||
|
|
||||||
@ -253,8 +252,6 @@ def convert_to_markdown_v2(output_data: dict, gfm_supported: bool = True, increm
|
|||||||
else:
|
else:
|
||||||
# markdown_text += f"<tr><td> {emoji} <strong>{key_nice}</strong></td><td>\n{value}\n\n</td></tr>\n"
|
# markdown_text += f"<tr><td> {emoji} <strong>{key_nice}</strong></td><td>\n{value}\n\n</td></tr>\n"
|
||||||
markdown_text += f"### {emoji} {key_nice}: {value}\n\n"
|
markdown_text += f"### {emoji} {key_nice}: {value}\n\n"
|
||||||
print(markdown_text)
|
|
||||||
|
|
||||||
|
|
||||||
if 'code_feedback' in output_data:
|
if 'code_feedback' in output_data:
|
||||||
if gfm_supported:
|
if gfm_supported:
|
||||||
@ -271,8 +268,6 @@ def convert_to_markdown_v2(output_data: dict, gfm_supported: bool = True, increm
|
|||||||
markdown_text= markdown_text[:-4]
|
markdown_text= markdown_text[:-4]
|
||||||
if gfm_supported:
|
if gfm_supported:
|
||||||
markdown_text += f"</details>"
|
markdown_text += f"</details>"
|
||||||
#print(markdown_text)
|
|
||||||
|
|
||||||
|
|
||||||
return markdown_text
|
return markdown_text
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user