Add 'original_suggestion' parameter to publish_inline_comment methods across git providers for enhanced inline comment handling

This commit is contained in:
mrT23
2024-08-16 08:58:51 +03:00
parent 402a388be0
commit 3456c8e039
11 changed files with 18 additions and 14 deletions

View File

@ -331,7 +331,7 @@ class BitbucketProvider(GitProvider):
return dict(body=body, path=path, position=absolute_position) if subject_type == "LINE" else {}
def publish_inline_comment(self, comment: str, from_line: int, file: str):
def publish_inline_comment(self, comment: str, from_line: int, file: str, original_suggestion=None):
comment = self.limit_output_characters(comment, self.max_comment_length)
payload = json.dumps( {
"content": {