Merge pull request #209 from tjwp/no-suggestions

Publish comment when improve has no suggestions
This commit is contained in:
mrT23
2023-08-16 18:53:39 +03:00
committed by GitHub

View File

@ -93,6 +93,10 @@ class PRCodeSuggestions:
def push_inline_code_suggestions(self, data):
code_suggestions = []
if not data['Code suggestions']:
return self.git_provider.publish_comment('No suggestions found to improve this PR.')
for d in data['Code suggestions']:
try:
if get_settings().config.verbosity_level >= 2: