mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
review_v2
This commit is contained in:
parent
df02cc1437
commit
3373fb404a
1 changed files with 2 additions and 7 deletions
|
|
@ -197,11 +197,10 @@ def convert_to_markdown_v2(output_data: dict, gfm_supported: bool = True, increm
|
|||
}
|
||||
markdown_text = ""
|
||||
if not incremental_review:
|
||||
markdown_text += f"## PR Reviewer Guide 🔍\n\n"
|
||||
markdown_text += f"{PRReviewHeader.REGULAR.value} 🔍\n\n"
|
||||
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"
|
||||
|
||||
# if not output_data or not output_data.get('review', {}):
|
||||
# return ""
|
||||
|
||||
|
|
@ -253,8 +252,6 @@ def convert_to_markdown_v2(output_data: dict, gfm_supported: bool = True, increm
|
|||
else:
|
||||
# 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"
|
||||
print(markdown_text)
|
||||
|
||||
|
||||
if 'code_feedback' in output_data:
|
||||
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]
|
||||
if gfm_supported:
|
||||
markdown_text += f"</details>"
|
||||
#print(markdown_text)
|
||||
|
||||
|
||||
return markdown_text
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue