Skip to content

Commit 95f23de

Browse files
committed
Use code blocks instead of suggestion blocks for Bitbucket Server multi-line suggestions to workaround BSERV-4553
1 parent 41588ef commit 95f23de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pr_agent/git_providers/bitbucket_server_provider.py

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def publish_code_suggestions(self, code_suggestions: list) -> bool:
9191
continue
9292

9393
if relevant_lines_end > relevant_lines_start:
94+
# Bitbucket does not support multi-line suggestions so use a code block instead - https://jira.atlassian.com/browse/BSERV-4553
95+
body = body.replace("```suggestion", "```")
9496
post_parameters = {
9597
"body": body,
9698
"path": relevant_file,

0 commit comments

Comments
 (0)