mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
Use code blocks instead of suggestion blocks for Bitbucket Server multi-line suggestions to workaround BSERV-4553
This commit is contained in:
@ -91,6 +91,8 @@ class BitbucketServerProvider(GitProvider):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if relevant_lines_end > relevant_lines_start:
|
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 = {
|
post_parameters = {
|
||||||
"body": body,
|
"body": body,
|
||||||
"path": relevant_file,
|
"path": relevant_file,
|
||||||
|
Reference in New Issue
Block a user