mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
review formatting
This commit is contained in:
@ -51,7 +51,7 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str:
|
|||||||
markdown_text += f"## PR Review\n\n"
|
markdown_text += f"## PR Review\n\n"
|
||||||
if gfm_supported:
|
if gfm_supported:
|
||||||
markdown_text += "<table>\n<tr>\n"
|
markdown_text += "<table>\n<tr>\n"
|
||||||
markdown_text += """<td> PR feedback </td> <td></td></tr>"""
|
# markdown_text += """<td> Feedback </td> <td></td></tr>"""
|
||||||
|
|
||||||
if not output_data or not output_data.get('review', {}):
|
if not output_data or not output_data.get('review', {}):
|
||||||
return ""
|
return ""
|
||||||
@ -62,6 +62,8 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str:
|
|||||||
key_nice = key.replace('_', ' ').capitalize()
|
key_nice = key.replace('_', ' ').capitalize()
|
||||||
emoji = emojis.get(key_nice, "")
|
emoji = emojis.get(key_nice, "")
|
||||||
if gfm_supported:
|
if gfm_supported:
|
||||||
|
if 'Estimated effort to review' in key_nice:
|
||||||
|
key_nice = 'Estimated effort to review [1-5]'
|
||||||
if 'possible issues' in key_nice.lower():
|
if 'possible issues' in key_nice.lower():
|
||||||
value = value.strip()
|
value = value.strip()
|
||||||
issues = value.split('\n- ')
|
issues = value.split('\n- ')
|
||||||
|
Reference in New Issue
Block a user