mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-26 19:40:20 +00:00
docs: Update bug report template
This commit is contained in:
parent
7c05412f46
commit
2edccd8848
22
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
22
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
@ -7,8 +7,18 @@ assignees: ''
|
||||
|
||||
---
|
||||
|
||||
<!--
|
||||
─────────────────────────────────────────────
|
||||
⚠️ IMPORTANT: Please run the following command to create an issue:
|
||||
|
||||
starship bug-report
|
||||
|
||||
An issue will be pre-populated with your system's configuration,
|
||||
making the process a whole lot quicker 😊
|
||||
─────────────────────────────────────────────
|
||||
-->
|
||||
|
||||
## Bug Report
|
||||
<!-- We recommend running `starship bug-report` in the shell you are experiencing unexpected behavior. The command will automatically pre-fill a report with your system information. -->
|
||||
|
||||
#### Current Behavior
|
||||
<!-- A clear and concise description of the behavior. -->
|
||||
@ -19,13 +29,16 @@ assignees: ''
|
||||
#### 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: [the output of `starship --version`]
|
||||
- Shell type: [fish, zsh]
|
||||
- Shell version: [the output of `fish --version` or `zsh --version`]
|
||||
- Shell plugin manager: [e.g. oh-my-fish, oh-my-zsh, fisher, antigen]
|
||||
- Terminal emulator: [e.g. iTerm, Hyper, Terminator]
|
||||
- Operating system: [e.g. OSX 10.13.4, Windows 10]
|
||||
- Operating system: [e.g. macOS 10.13.4, Windows 10]
|
||||
|
||||
#### Relevant Shell Configuration
|
||||
<!--
|
||||
@ -39,11 +52,8 @@ assignees: ''
|
||||
```
|
||||
|
||||
#### Starship Configuration
|
||||
<!-- Can be found in $XDG_CONFIG_HOME/starship.toml or ~/.config/starship.toml -->
|
||||
<!-- Can be found in ~/.config/starship.toml -->
|
||||
|
||||
```bash
|
||||
# Your configuration here
|
||||
```
|
||||
|
||||
#### Possible Solution
|
||||
<!--- Only if you have suggestions on a fix for the bug -->
|
||||
|
@ -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 ♥
|
||||
|
||||
─────────────────────────────────────────────
|
||||
-->
|
||||
|
||||
@ -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,10 +85,7 @@ 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,
|
||||
@ -98,8 +96,8 @@ fn make_github_issue_link(starship_version: &str, environment: Environment) -> S
|
||||
));
|
||||
|
||||
format!(
|
||||
"https://github.com/starship/starship/issues/new?title={}&body={}",
|
||||
title, body
|
||||
"https://github.com/starship/starship/issues/new?template={}&body={}",
|
||||
template_filename, body
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user