mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
chore: Recover the original inline code logic
This commit is contained in:
parent
d80e229bdf
commit
7b9e8bff3b
1 changed files with 1 additions and 3 deletions
|
|
@ -563,8 +563,6 @@ class PRCodeSuggestions:
|
||||||
code_suggestions = []
|
code_suggestions = []
|
||||||
|
|
||||||
if not data['code_suggestions']:
|
if not data['code_suggestions']:
|
||||||
|
|
||||||
if not filtered_suggestions:
|
|
||||||
get_logger().info('No suggestions found to improve this PR.')
|
get_logger().info('No suggestions found to improve this PR.')
|
||||||
if self.progress_response:
|
if self.progress_response:
|
||||||
return self.git_provider.edit_comment(self.progress_response,
|
return self.git_provider.edit_comment(self.progress_response,
|
||||||
|
|
@ -572,7 +570,7 @@ class PRCodeSuggestions:
|
||||||
else:
|
else:
|
||||||
return self.git_provider.publish_comment('No suggestions found to improve this PR.')
|
return self.git_provider.publish_comment('No suggestions found to improve this PR.')
|
||||||
|
|
||||||
for d in filtered_suggestions:
|
for d in data['code_suggestions']:
|
||||||
try:
|
try:
|
||||||
if get_settings().config.verbosity_level >= 2:
|
if get_settings().config.verbosity_level >= 2:
|
||||||
get_logger().info(f"suggestion: {d}")
|
get_logger().info(f"suggestion: {d}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue