style: move docstring to correct position in report_github_issue function

This commit is contained in:
Paul Gauthier (aider) 2024-08-29 07:31:57 -07:00
parent 9f1b268740
commit 56a88018a9

View file

@ -6,8 +6,6 @@ from aider import __version__
def report_github_issue(issue_text, title=None):
version_info = f"Aider version: {__version__}\n\n"
issue_text = version_info + issue_text
"""
Compose a URL to open a new GitHub issue with the given text prefilled,
and attempt to launch it in the default web browser.
@ -16,6 +14,8 @@ def report_github_issue(issue_text, title=None):
:param title: The title of the issue (optional)
:return: 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: