Skip to content

Commit

Permalink
Use code blocks instead of suggestion blocks for Bitbucket Server mul…
Browse files Browse the repository at this point in the history
…ti-line suggestions to workaround BSERV-4553
  • Loading branch information
MarkRx committed Jul 30, 2024
1 parent 41588ef commit 95f23de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pr_agent/git_providers/bitbucket_server_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def publish_code_suggestions(self, code_suggestions: list) -> bool:
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,
Expand Down

0 comments on commit 95f23de

Please sign in to comment.