mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-08 06:40:39 +08:00
s
This commit is contained in:
@ -80,7 +80,7 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str:
|
|||||||
return markdown_text
|
return markdown_text
|
||||||
|
|
||||||
|
|
||||||
def parse_code_suggestion(code_suggestions: dict, i:int, gfm_supported: bool=True) -> str:
|
def parse_code_suggestion(code_suggestions: dict, i: int = 0, gfm_supported: bool = True) -> str:
|
||||||
"""
|
"""
|
||||||
Convert a dictionary of data into markdown format.
|
Convert a dictionary of data into markdown format.
|
||||||
|
|
||||||
@ -91,12 +91,10 @@ def parse_code_suggestion(code_suggestions: dict, i:int, gfm_supported: bool=Tru
|
|||||||
str: A string containing the markdown formatted text generated from the input dictionary.
|
str: A string containing the markdown formatted text generated from the input dictionary.
|
||||||
"""
|
"""
|
||||||
markdown_text = ""
|
markdown_text = ""
|
||||||
|
if gfm_supported and 'relevant line' in code_suggestions:
|
||||||
if i == 0:
|
if i == 0:
|
||||||
markdown_text += "<hr>"
|
markdown_text += "<hr>"
|
||||||
if gfm_supported and 'relevant line' in code_suggestions:
|
|
||||||
# markdown_text=markdown_text.strip()
|
|
||||||
markdown_text += '<table>'
|
markdown_text += '<table>'
|
||||||
relevant_file = ''
|
|
||||||
for sub_key, sub_value in code_suggestions.items():
|
for sub_key, sub_value in code_suggestions.items():
|
||||||
try:
|
try:
|
||||||
if sub_key.lower() == 'relevant file':
|
if sub_key.lower() == 'relevant file':
|
||||||
|
Reference in New Issue
Block a user