Use code blocks instead of suggestion blocks for Bitbucket Server multi-line suggestions to workaround BSERV-4553

This commit is contained in:
MarkRx
2024-07-30 10:43:56 -04:00
parent 41588efe9a
commit 95f23de7ec

View File

@ -91,6 +91,8 @@ class BitbucketServerProvider(GitProvider):
continue
if relevant_lines_end > relevant_lines_start:
# Bitbucket does not support multi-line suggestions so use a code block instead - https://jira.atlassian.com/browse/BSERV-4553
body = body.replace("```suggestion", "```")
post_parameters = {
"body": body,
"path": relevant_file,