Skip to content

Commit 3ab2cac

Browse files
committed
fix: improve markdown rendering when git provider is unavailable
1 parent 989670b commit 3ab2cac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pr_agent/algo/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def convert_to_markdown_v2(output_data: dict,
229229
continue
230230
relevant_file = issue.get('relevant_file', '').strip()
231231
issue_header = issue.get('issue_header', '').strip()
232+
if issue_header.lower() == 'possible bug':
233+
issue_header = 'Possible Issue' # Make the header less frightening
232234
issue_content = issue.get('issue_content', '').strip()
233235
start_line = int(str(issue.get('start_line', 0)).strip())
234236
end_line = int(str(issue.get('end_line', 0)).strip())

0 commit comments

Comments
 (0)