diff --git a/pr_agent/algo/git_patch_processing.py b/pr_agent/algo/git_patch_processing.py index 4d85f298..180d7489 100644 --- a/pr_agent/algo/git_patch_processing.py +++ b/pr_agent/algo/git_patch_processing.py @@ -101,11 +101,11 @@ def process_patch_lines(patch_str, original_file_str, patch_extra_lines_before, # Update start and size in one line each extended_start1, extended_start2 = extended_start1 + i, extended_start2 + i extended_size1, extended_size2 = extended_size1 - i, extended_size2 - i - get_logger().debug(f"Found section header in line {i} before the hunk") + # get_logger().debug(f"Found section header in line {i} before the hunk") section_header = '' break if not found_header: - get_logger().debug(f"Section header not found in the extra lines before the hunk") + # get_logger().debug(f"Section header not found in the extra lines before the hunk") extended_start1, extended_size1, extended_start2, extended_size2 = \ _calc_context_limits(patch_extra_lines_before) else: diff --git a/pr_agent/settings/pr_code_suggestions_reflect_prompts.toml b/pr_agent/settings/pr_code_suggestions_reflect_prompts.toml index e49896c7..e029269b 100644 --- a/pr_agent/settings/pr_code_suggestions_reflect_prompts.toml +++ b/pr_agent/settings/pr_code_suggestions_reflect_prompts.toml @@ -75,7 +75,7 @@ class CodeSuggestionFeedback(BaseModel): suggestion_summary: str = Field(description="Repeated from the input") relevant_file: str = Field(description="Repeated from the input") suggestion_score: int = Field(description="Evaluate the suggestion and assign a score from 0 to 10. Give 0 if the suggestion is wrong. For valid suggestions, score from 1 (lowest impact/importance) to 10 (highest impact/importance).") - why: str = Field(description="Briefly justify the score in 1-2 sentences, focusing on the suggestion's impact, relevance, and accuracy.") + why: str = Field(description="Briefly explain the score given in 1-2 sentences, focusing on the suggestion's impact, relevance, and accuracy.") class PRCodeSuggestionsFeedback(BaseModel): code_suggestions: List[CodeSuggestionFeedback]