Skip to content

Commit

Permalink
Merge pull request #1079 from MarkRx/feature/bitbucket-server-multi-l…
Browse files Browse the repository at this point in the history
…ine-suggestion-workaround

Use code blocks instead of suggestion blocks for Bitbucket Server multi-line suggestions
  • Loading branch information
mrT23 authored Aug 1, 2024
2 parents 9560bc1 + 95f23de commit 23ec25c
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 @@ -81,6 +81,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 23ec25c

Please sign in to comment.