Skip to content

Commit 5650461

Browse files
authored
feat: Add issue template and update q issue to point to this repo (#139)
1 parent 94eef03 commit 5650461

File tree

3 files changed

+62
-11
lines changed

3 files changed

+62
-11
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "Bug report"
2+
description: "File an issue related to Amazon Q Developer CLI"
3+
4+
title: "bug: "
5+
labels: ["NEED_TO_LABEL"]
6+
7+
body:
8+
- type: checkboxes
9+
id: "checks"
10+
attributes:
11+
label: "Checks"
12+
options:
13+
- label: "I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue"
14+
required: true
15+
- label: "I have run `q doctor` in the affected terminal session"
16+
required: true
17+
- label: "I have run `q restart` and replicated the issue again"
18+
required: true
19+
20+
- type: input
21+
id: "os"
22+
attributes:
23+
label: "Operating system"
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: "expected"
29+
attributes:
30+
label: "Expected behaviour"
31+
description: "What did you expect to happen?"
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: "actual"
37+
attributes:
38+
label: "Actual behaviour"
39+
description: "What actually happened? Please provide a screenshot or video if possible."
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: "reproduce"
45+
attributes:
46+
label: "Steps to reproduce"
47+
description: "Are you able to reproduce this issue? If so, how?"
48+
49+
- type: textarea
50+
id: "environment"
51+
attributes:
52+
label: "Environment"
53+
description: "If possible, run `q diagnostic` and paste the output below."
54+
render: yaml

crates/fig_util/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub const OLD_PRODUCT_NAME: &str = "CodeWhisperer";
2929
pub const OLD_CLI_BINARY_NAMES: &[&str] = &["cw"];
3030
pub const OLD_PTY_BINARY_NAMES: &[&str] = &["cwterm"];
3131

32-
pub const GITHUB_DISCUSSIONS_REPO_NAME: &str = "q-command-line-discussions";
32+
pub const GITHUB_REPO_NAME: &str = "aws/amazon-q-developer-cli";
3333

3434
pub mod url {
3535
pub const USER_MANUAL: &str = "https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line.html";

crates/q_cli/src/cli/issue.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use fig_diagnostic::Diagnostics;
1111
use fig_util::system_info::is_remote;
1212
use fig_util::{
1313
CLI_BINARY_NAME,
14-
GITHUB_DISCUSSIONS_REPO_NAME,
14+
GITHUB_REPO_NAME,
1515
PRODUCT_NAME,
1616
};
1717

@@ -61,15 +61,12 @@ impl IssueArgs {
6161
},
6262
};
6363

64-
let url = url::Url::parse_with_params(
65-
&format!("https://github.com/aws/{GITHUB_DISCUSSIONS_REPO_NAME}/discussions/new"),
66-
&[
67-
("category", "support-ticket"),
68-
("title", &issue_title),
69-
("os", &os),
70-
("environment", &environment),
71-
],
72-
)?;
64+
let url = url::Url::parse_with_params(&format!("https://github.com/{GITHUB_REPO_NAME}/issues/new"), &[
65+
("template", "1_bug_report_template.yml"),
66+
("title", &issue_title),
67+
("os", &os),
68+
("environment", &environment),
69+
])?;
7370

7471
println!("Heading over to GitHub...");
7572
if is_remote() || fig_util::open_url_async(url.as_str()).await.is_err() {

0 commit comments

Comments
 (0)