mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
protections
This commit is contained in:
parent
d77db93f80
commit
c7eb70d00d
1 changed files with 0 additions and 1 deletions
|
|
@ -184,7 +184,6 @@ class PRCodeSuggestions:
|
||||||
suggestion_list = []
|
suggestion_list = []
|
||||||
one_sentence_summary_list = []
|
one_sentence_summary_list = []
|
||||||
for i, suggestion in enumerate(data['code_suggestions']):
|
for i, suggestion in enumerate(data['code_suggestions']):
|
||||||
continue
|
|
||||||
if get_settings().pr_code_suggestions.summarize:
|
if get_settings().pr_code_suggestions.summarize:
|
||||||
if not suggestion or 'one_sentence_summary' not in suggestion or 'label' not in suggestion or 'relevant_file' not in suggestion:
|
if not suggestion or 'one_sentence_summary' not in suggestion or 'label' not in suggestion or 'relevant_file' not in suggestion:
|
||||||
get_logger().debug(f"Skipping suggestion {i + 1}, because it is invalid: {suggestion}")
|
get_logger().debug(f"Skipping suggestion {i + 1}, because it is invalid: {suggestion}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue