summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-12-15 19:27:23 -0500
committerMatan Kushner <hello@matchai.me>2019-12-15 19:27:23 -0500
commit2edccd8848a1c5d26dd5c35016ac1734cb44519b (patch)
tree8c5a1f9f37a9b50b325fd76be58ae3f12003543a /src
parent7c05412f46a2e38ed32a92aa1dd8b7add7be5ff9 (diff)
docs: Update bug report template
Diffstat (limited to 'src')
-rw-r--r--src/bug_report.rs34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/bug_report.rs b/src/bug_report.rs
index 056fc3abb..0ba8e840e 100644
--- a/src/bug_report.rs
+++ b/src/bug_report.rs
@@ -47,14 +47,12 @@ struct Environment {
}
fn make_github_issue_link(starship_version: &str, environment: Environment) -> String {
- let title = urlencoding::encode("Bug Report:");
+ let template_filename = urlencoding::encode("Bug_report.md");
let body = urlencoding::encode(&format!("<!--
─────────────────────────────────────────────
-
- This issue has been pre-populated with your system's configuration
- ♥ Thank you for submitting a bug report ♥
-
+ This issue has been pre-populated with your system's configuration
+ ♥ Thank you for submitting a bug report ♥
─────────────────────────────────────────────
-->
@@ -69,6 +67,9 @@ fn make_github_issue_link(starship_version: &str, environment: Environment) -> S
#### Additional context/Screenshots
<!-- Add any other context about the problem here. If applicable, add screenshots to help explain. -->
+#### Possible Solution
+<!--- Only if you have suggestions on a fix for the bug -->
+
#### Environment
- Starship version: {starship_version}
- {shell_name} version: {shell_version}
@@ -84,22 +85,19 @@ fn make_github_issue_link(starship_version: &str, environment: Environment) -> S
```toml
{starship_config}
-```
-
-#### Possible Solution
-<!--- Only if you have suggestions on a fix for the bug -->",
- starship_version = starship_version,
- shell_name = environment.shell_info.name,
- shell_version = environment.shell_info.version,
- os_name = environment.os_type,
- os_version = environment.os_version,
- shell_config = environment.shell_info.config,
- starship_config = environment.starship_config,
+```",
+ starship_version = starship_version,
+ shell_name = environment.shell_info.name,
+ shell_version = environment.shell_info.version,
+ os_name = environment.os_type,
+ os_version = environment.os_version,
+ shell_config = environment.shell_info.config,
+ starship_config = environment.starship_config,
));
format!(
- "https://github.com/starship/starship/issues/new?title={}&body={}",
- title, body
+ "https://github.com/starship/starship/issues/new?template={}&body={}",
+ template_filename, body
)
}