mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
minor fixes
This commit is contained in:
@ -30,7 +30,8 @@ def convert_to_markdown(output_data: dict) -> str:
|
|||||||
elif isinstance(value, list):
|
elif isinstance(value, list):
|
||||||
if key.lower() == 'code suggestions':
|
if key.lower() == 'code suggestions':
|
||||||
markdown_text += "\n" # just looks nicer with additional line breaks
|
markdown_text += "\n" # just looks nicer with additional line breaks
|
||||||
emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key
|
# emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key
|
||||||
|
emoji = ""
|
||||||
markdown_text += f"- {emoji} **{key}:**\n\n"
|
markdown_text += f"- {emoji} **{key}:**\n\n"
|
||||||
for item in value:
|
for item in value:
|
||||||
if isinstance(item, dict) and key.lower() == 'code suggestions':
|
if isinstance(item, dict) and key.lower() == 'code suggestions':
|
||||||
@ -38,7 +39,8 @@ def convert_to_markdown(output_data: dict) -> str:
|
|||||||
elif item:
|
elif item:
|
||||||
markdown_text += f" - {item}\n"
|
markdown_text += f" - {item}\n"
|
||||||
elif value != 'n/a':
|
elif value != 'n/a':
|
||||||
emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key
|
# emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key
|
||||||
|
emoji = ""
|
||||||
markdown_text += f"- {emoji} **{key}:** {value}\n"
|
markdown_text += f"- {emoji} **{key}:** {value}\n"
|
||||||
return markdown_text
|
return markdown_text
|
||||||
|
|
||||||
|
@ -103,8 +103,8 @@ Example output:
|
|||||||
...
|
...
|
||||||
]
|
]
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if require_security %},
|
{%- if require_security %}
|
||||||
"Security concerns": "No, because ..."
|
"Security concerns": "No, because ..."
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user