fix: improve markdown rendering when git provider is unavailable

This commit is contained in:
mrT23
2024-12-19 20:59:17 +02:00
parent 989670b159
commit 3ab2cac089

View File

@ -229,6 +229,8 @@ def convert_to_markdown_v2(output_data: dict,
continue
relevant_file = issue.get('relevant_file', '').strip()
issue_header = issue.get('issue_header', '').strip()
if issue_header.lower() == 'possible bug':
issue_header = 'Possible Issue' # Make the header less frightening
issue_content = issue.get('issue_content', '').strip()
start_line = int(str(issue.get('start_line', 0)).strip())
end_line = int(str(issue.get('end_line', 0)).strip())