mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
feat: Add custom URL support for the /bug command (#1017)
This commit is contained in:
parent
d5c6bb9740
commit
643bdf31d5
6 changed files with 79 additions and 7 deletions
|
|
@ -512,13 +512,14 @@ Add any other context about the problem here.
|
|||
`;
|
||||
|
||||
let bugReportUrl =
|
||||
'https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.md';
|
||||
if (bugDescription) {
|
||||
const encodedArgs = encodeURIComponent(bugDescription);
|
||||
bugReportUrl += `&title=${encodedArgs}`;
|
||||
'https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.md&title={title}&body={body}';
|
||||
const bugCommand = config?.getBugCommand();
|
||||
if (bugCommand?.urlTemplate) {
|
||||
bugReportUrl = bugCommand.urlTemplate;
|
||||
}
|
||||
const encodedBody = encodeURIComponent(diagnosticInfo);
|
||||
bugReportUrl += `&body=${encodedBody}`;
|
||||
bugReportUrl = bugReportUrl
|
||||
.replace('{title}', encodeURIComponent(bugDescription))
|
||||
.replace('{body}', encodeURIComponent(diagnosticInfo));
|
||||
|
||||
addMessage({
|
||||
type: MessageType.INFO,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue