diff --git a/aider/report.py b/aider/report.py index 1a3472b7f..7875b023e 100644 --- a/aider/report.py +++ b/aider/report.py @@ -5,6 +5,7 @@ import urllib.parse import webbrowser from aider import __version__ +from aider.urls import github_issues def report_github_issue(issue_text, title=None): @@ -18,12 +19,11 @@ def report_github_issue(issue_text, title=None): """ version_info = f"Aider version: {__version__}\n\n" issue_text = version_info + issue_text - base_url = "https://github.com/paul-gauthier/aider/issues/new" params = {"body": issue_text} if title is None: title = "Bug report" params["title"] = title - issue_url = f"{base_url}?{urllib.parse.urlencode(params)}" + issue_url = f"{github_issues}?{urllib.parse.urlencode(params)}" print(f"\n# {title}\n") print(issue_text.strip()) diff --git a/aider/urls.py b/aider/urls.py index 24e830766..91700113d 100644 --- a/aider/urls.py +++ b/aider/urls.py @@ -8,3 +8,4 @@ model_warnings = "https://aider.chat/docs/llms/warnings.html" token_limits = "https://aider.chat/docs/troubleshooting/token-limits.html" llms = "https://aider.chat/docs/llms.html" large_repos = "https://aider.chat/docs/faq.html#can-i-use-aider-in-a-large-mono-repo" +github_issues = "https://github.com/paul-gauthier/aider/issues/new"