github: Use GitHub Issue Forms with yaml
authorJosef Schlehofer <[email protected]>
Mon, 2 Jun 2025 10:38:18 +0000 (12:38 +0200)
committerJosef Schlehofer <[email protected]>
Tue, 3 Jun 2025 05:59:41 +0000 (07:59 +0200)
This replaces the old issue templates with the new one.
It is going to reflect changes and require more details.

Issue Forms as also used in the main repository and in LuCI,
it helps users to create structured issue.

Signed-off-by: Josef Schlehofer <[email protected]>
.github/ISSUE_TEMPLATE/bug_report.yml [new file with mode: 0644]
.github/issue_template [deleted file]

diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644 (file)
index 0000000..1bd46a4
--- /dev/null
@@ -0,0 +1,68 @@
+name: Package Bug Report
+description: Report an issue with a package in this repository
+title: "<package-name>: <short description>"
+labels: [bug]
+body:
+  - type: markdown
+    attributes:
+      value: |
+        # ðŸ“¦ Package Details
+
+  - type: input
+    id: package-name
+    attributes:
+      label: Package Name
+      placeholder: e.g. iptables, curl, netdata
+
+  - type: input
+    id: maintainer
+    attributes:
+      label: Maintainer
+      placeholder: (@username)
+
+  - type: input
+    id: openwrt-version
+    attributes:
+      label: OpenWrt Version
+      placeholder: e.g. 23.05.2 or SNAPSHOT
+
+  - type: input
+    id: target-subtarget
+    attributes:
+      label: OpenWrt Target/Subtarget
+      placeholder: e.g. ramips/mt76x8, ath79/generic
+
+  - type: textarea
+    id: steps-to-reproduce
+    attributes:
+      label: Steps to Reproduce
+      description: Please list the steps that lead to the issue.
+      placeholder: |
+        1. Do this
+        2. Then this
+        3. Observe the issue
+
+        Try to avoid uploading screenshots, logs are preferred.
+
+  - type: textarea
+    id: actual-behavior
+    attributes:
+      label: Actual Behaviour
+      description: What actually happened? Be as detailed as possible.
+      placeholder: A clear and concise description of what happened.
+
+  - type: markdown
+    attributes:
+      value: |
+        # âœ… Formalities
+
+        Before submitting this issue, please confirm the following:
+
+  - type: checkboxes
+    id: confirmations
+    attributes:
+      label: Confirmation Checklist
+      options:
+        - label: The package is maintained in this repository.
+        - label: I understand that issues related to [the base OpenWrt repository](https://github.com/openwrt/openwrt/issues) or [LuCI repository](https://github.com/openwrt/luci/issues) will be closed.
+        - label: I am reporting an issue for OpenWrt, not an unsupported fork.
diff --git a/.github/issue_template b/.github/issue_template
deleted file mode 100644 (file)
index 2b237e2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-Please make sure that the issue subject starts with `<package-name>: `
-
-Also make sure that the package is maintained in this repository and not in base which should be submitted at https://bugs.openwrt.org or in the LuCI repository which should be submitted at https://github.com/openwrt/luci/issues.
-
-Issues related to releases below 18.06 and forks are not supported or maintained and will be closed.
-
-# Issue template (remove lines from top till here)
-
-Maintainer: @\<github-user> (find it by checking history of the package Makefile)
-Environment: (put here arch, model, OpenWrt version)
-
-Description:
-
-```
-Format code blocks by wrapping them with pairs of ```
-```