Update bug-report template

This commit is contained in:
Ilan Cosman 2021-03-30 14:01:51 -07:00
parent 0d306fe85b
commit 1eca002e73
2 changed files with 9 additions and 13 deletions

View File

@ -6,6 +6,10 @@ labels: "🐛 bug"
assignees: ""
---
<!-- -------------------------------------------------------------------
Please run the following command before submitting: tide bug-report
-------------------------------------------------------------------- -->
#### Describe the bug
<!-- A clear and concise description of what the bug is. -->
@ -16,22 +20,14 @@ assignees: ""
2. Run '....'
3. See error
#### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
#### Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->
#### Environment (please complete the following information)
#### Environment
- Operating System: <!-- e.g. Ubuntu 20.04 -->
- Output of `tide bug-report`: <!-- In the code block below -->
```console
```
- Operating system: <!-- e.g. Ubuntu 20.04 -->
- Terminal emulator: <!-- e.g. Kitty, Alacritty, Hyper -->
#### Additional context

View File

@ -7,7 +7,7 @@ function _tide_sub_bug-report
source && fisher install ilancosman/tide"
else if set -q _flag_verbose
printf '%s\n' $TERM
set --long | string match --regex "^_?tide.*" | # Get only tide variables
string match --regex --invert "^_tide_.*_prompt_display_.*" | # Remove _tide_left_prompt_display_5770 etc
string match --regex --invert "^_tide_var_list.*" # Remove _tide_var_list
@ -26,7 +26,7 @@ function _tide_check_version -a programName repoName regexToGetVersion currentVe
read --local --line __ latestVersion
string match --quiet --regex "^$latestVersion" "$currentVersion" && return
set_color red
printf '%s\n' \
"Your $programName version is out of date." \