mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
feat: add Aider version to GitHub issue report
This commit is contained in:
parent
15434053df
commit
41d3d18f8c
1 changed files with 3 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
||||||
import sys
|
import sys
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
from aider import __version__
|
||||||
|
|
||||||
|
|
||||||
def report_github_issue(issue_text, title=None):
|
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,
|
Compose a URL to open a new GitHub issue with the given text prefilled,
|
||||||
and attempt to launch it in the default web browser.
|
and attempt to launch it in the default web browser.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue