From 8ebad5ca483eab8a75a345fc6f011b1817a648b0 Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Wed, 13 Dec 2023 10:36:59 +0000 Subject: [PATCH] GH: use an issue form for bug reports Lots of bug reports currently just omit information which we'd like to have. Usually this means we have to ask follow up question. Let's try using an issue form in the hopes of getting more complete answers. Signed-off-by: Lorenz Bauer --- .github/ISSUE_TEMPLATE/bug_report.md | 23 ----------------- .github/ISSUE_TEMPLATE/bug_report.yml | 36 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 23 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 028dfe645..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior. Please include: - -```sh -go version -uname -a -cat /etc/issue -``` - -**Expected behavior** -A clear and concise description of what you expected to happen. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..f2ea7a3d4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,36 @@ +name: Bug report +description: Create a report to help us improve +labels: ["bug"] +assignees: [] + +body: + - type: markdown + attributes: + value: "Thank you for reporting a bug. Please fill out the fields below." + + - type: textarea + attributes: + label: Describe the bug + description: | + A clear and concise description of what the bug is. + Include what you expected to happen instead. + render: markdown + validations: + required: true + + - type: textarea + attributes: + label: How to reproduce + description: "Steps to reproduce the behavior." + render: shell + validations: + required: true + + - type: input + id: version + attributes: + label: Version information + description: The output of `go list -m github.com/cilium/ebpf`. + placeholder: github.com/cilium/ebpf vX.Y.Z + validations: + required: true