diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 04f5d9f01a..0000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: "Bug report \U0001F41B" -about: Create a report to help us improve -title: '' -labels: C-bug -assignees: '' - ---- - -**Version** -List the version(s) of `hyper`, and any relevant hyper dependency (such as `h2` if this is related to HTTP/2). - -**Platform** -The output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) - -**Description** -Enter your issue details here. -One way to structure the description: - -[short summary of the bug] - -I tried this code: - -[code sample that causes the bug] - -I expected to see this happen: [explanation] - -Instead, this happened: [explanation] diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000000..23abc6275d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,65 @@ +name: "Bug report 🐛" +description: Create a report to help us improve +labels: ["C-bug"] +body: + - type: input + id: version + attributes: + label: Version + description: List the version(s) of `hyper`, and any relevant hyper dependency (such as `h2` if this is related to HTTP/2). + placeholder: "hyper 1.0.0, h2 0.4.0" + validations: + required: true + + - type: input + id: platform + attributes: + label: Platform + description: The output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) + placeholder: "Linux 5.15.0 x86_64 / Windows 11 64-bit" + validations: + required: true + + - type: textarea + id: summary + attributes: + label: Summary + description: A short summary of the bug + placeholder: "Brief description of what went wrong" + validations: + required: true + + - type: textarea + id: code + attributes: + label: Code Sample + description: Code sample that causes the bug (if applicable) + render: rust + placeholder: | + use hyper::...; + + fn main() { + // code that reproduces the bug + } + + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: What you expected to happen + validations: + required: true + + - type: textarea + id: actual + attributes: + label: Actual Behavior + description: What actually happened instead + validations: + required: true + + - type: textarea + id: additional + attributes: + label: Additional Context + description: Any other context about the problem (stack traces, related issues, etc.)