Merge pull request #363 from Codium-ai/tr/pr_suggestions

publish each suggestion seperatly only on gitlab
This commit is contained in:
mrT23
2023-10-08 17:01:44 +03:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@ -138,9 +138,9 @@ class PRCodeSuggestions:
if get_settings().config.verbosity_level >= 2:
logging.info(f"Could not parse suggestion: {d}")
# is_successful = self.git_provider.publish_code_suggestions(code_suggestions)
if True:
# logging.info("Failed to publish code suggestions, trying to publish each suggestion separately")
is_successful = self.git_provider.publish_code_suggestions(code_suggestions)
if not is_successful:
logging.info("Failed to publish code suggestions, trying to publish each suggestion separately")
for code_suggestion in code_suggestions:
self.git_provider.publish_code_suggestions([code_suggestion])