From 1b5ef76c1876dd9e83f5b977b645f35bb751e85e Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 4 Sep 2024 10:09:07 -0700 Subject: [PATCH] refactor: update cmd_report to use confirm=False and conditional user report prefix --- aider/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 76640d0e7..309a6ed7e 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1140,8 +1140,8 @@ class Commands: from aider.report import report_github_issue announcements = "\n".join(self.coder.get_announcements()) - issue_text = f"User report:\n\n{args}\n\nAnnouncements:\n{announcements}" - report_github_issue(issue_text, confirm=True) + issue_text = f"{'User report:\n\n' if args.strip() else ''}{args}\n\nAnnouncements:\n{announcements}" + report_github_issue(issue_text, confirm=False) def expand_subdir(file_path):