publish each suggestion seperatly only on gitlab

This commit is contained in:
mrT23
2023-10-08 16:50:25 +03:00
parent 66a5f06b45
commit 1b3fb49f9c
2 changed files with 6 additions and 2 deletions

View File

@ -196,6 +196,10 @@ class GitLabProvider(GitProvider):
return self.last_diff # fallback to last_diff if no relevant diff is found
def publish_code_suggestions(self, code_suggestions: list) -> bool:
if len(code_suggestions) > 1:
logging.debug(f"in gitlab we dont currently support publishing multiple code suggestions simultaneously")
return False
for suggestion in code_suggestions:
try:
body = suggestion['body']