Skip to content

Commit 23ec25c

Browse files
authored
Merge pull request #1079 from MarkRx/feature/bitbucket-server-multi-line-suggestion-workaround
Use code blocks instead of suggestion blocks for Bitbucket Server multi-line suggestions
2 parents 9560bc1 + 95f23de commit 23ec25c

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
@@ -81,6 +81,8 @@ def publish_code_suggestions(self, code_suggestions: list) -> bool:
8181
continue
8282

8383
if relevant_lines_end > relevant_lines_start:
84+
# Bitbucket does not support multi-line suggestions so use a code block instead - https://jira.atlassian.com/browse/BSERV-4553
85+
body = body.replace("```suggestion", "```")
8486
post_parameters = {
8587
"body": body,
8688
"path": relevant_file,

0 commit comments

Comments
 (0)