release(docs): Refactor bug report template (#6858)

* try a github form the user bug report template

* make fixes

* apply suggestions

* Apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

---------

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Alfredo Garcia 2023-06-08 02:34:23 -03:00 committed by GitHub
parent 6075a091de
commit 081d2d1ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 71 deletions

View File

@ -1,69 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: C-bug, S-needs-triage
assignees: ''
---
## Description
<!--
Enter your issue details here.
-->
[short summary of the bug]
### Steps to Reproduce
I tried this:
[behavior or code sample that causes the bug]
```sh
copy and paste the exact commands or code here
```
### Expected Behaviour
I expected to see this happen: [explanation]
### Actual Behaviour
Instead, this happened: [explanation]
### Zebra Logs
<!--
Copy and paste the last 100 Zebra log lines.
Or upload the full logs to https://gist.github.com/ and add a link to them here.
-->
<details>
```
copy and paste the logs here
```
</details>
## Environment
### Zebra Version
<!--
For bugs in `zebrad`, run `zebrad version`.
For bugs in the `zebra` libraries, list the `zebra` crate versions.
You can get this information using cargo-tree:
cargo install cargo-tree
cargo tree | grep zebra
-->
### Operating System
<!--
Linux, macOS, BSD: the output of `uname -a`
Windows: Windows version and 32-bit or 64-bit
-->

71
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@ -0,0 +1,71 @@
name: Bug report
description: Create a report to help us improve
title: '[User reported bug]: '
labels: C-bug, S-needs-triage
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
value: "I expected to see this happen:
Instead, this happened:
"
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: What were you doing when the issue happened?
description: Copy and paste the exact commands or code here.
placeholder: "Behavior or code sample that causes the bug"
validations:
required: false
- type: textarea
id: logs
attributes:
label: Zebra logs
description: Copy and paste the last 100 Zebra log lines or upload the full logs to https://gist.github.com/ and add a link to them here.
placeholder: "Copy and paste the logs here"
validations:
required: false
- type: input
id: zebrad-version
attributes:
label: Zebra Version
description: "For bugs in `zebrad`, run `zebrad --version`."
placeholder: "zebrad 1.0.0-placeholder"
validations:
required: false
- type: checkboxes
id: os
attributes:
label: Which operating systems does the issue happen on?
description: You may select more than one.
options:
- label: Linux
- label: macOS
- label: Windows
- label: Other OS
- type: input
id: os-details
attributes:
label: OS details
description: "Linux, macOS, BSD: the output of `uname -a`; Windows: version and 32-bit or 64-bit; Other OS: name and version"
placeholder:
validations:
required: false
- type: textarea
id: anything-else
attributes:
label: Additional information
description: Is there anything else that could help us solve this issue?
validations:
required: false

View File

@ -14,8 +14,7 @@ how to build, run, and instrument Zebra.
## Bug Reports
[bug-reports]: #bug-reports
[File an issue](https://github.com/ZcashFoundation/zebra/issues/new/choose)
on the issue tracker using the bug report template.
Please [create an issue](https://github.com/ZcashFoundation/zebra/issues/new?assignees=&labels=C-bug%2C+S-needs-triage&projects=&template=bug_report.yml&title=) on the Zebra issue tracker.
## Pull Requests
[pull-requests]: #pull-requests