feat: add /report command to submit GitHub issues

This commit is contained in:
Paul Gauthier (aider) 2024-09-04 10:05:43 -07:00
parent 9434f99458
commit 5c6d4dbbf1

View file

@ -1135,6 +1135,14 @@ class Commands:
settings = format_settings(self.parser, self.args)
self.io.tool_output(settings)
def cmd_report(self, args):
"Report an issue to the aider GitHub repository"
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)
def expand_subdir(file_path):
if file_path.is_file():