Просмотр исходного кода

chore: add GitHub bug report issue template in .github/ISSUE_TEMPLATE/bug_report.yml

sw 6 дней назад
Родитель
Сommit
da3d85aebf
1 измененных файлов с 67 добавлено и 0 удалено
  1. 67 0
      .github/ISSUE_TEMPLATE/bug_report.yml

+ 67 - 0
.github/ISSUE_TEMPLATE/bug_report.yml

@@ -0,0 +1,67 @@
+name: 🐛 Bug Report
+description: 提交一个 Bug 或异常行为
+title: "[Bug]: "
+labels: ["bug"]
+assignees: []
+
+body:
+  - type: markdown
+    attributes:
+      value: |
+        感谢你提交 Bug!请尽可能详细地填写以下信息,以帮助我们重现并修复问题。
+
+  - type: input
+    id: environment
+    attributes:
+      label: 💻 环境信息
+      description: |
+        例如:
+        - 操作系统: macOS 14 / Windows 11 / Ubuntu 22.04  
+        - Node.js 版本: 18.17.0  
+        - 浏览器或运行环境: Chrome 128 / VSCode 1.93
+      placeholder: 请填写你的系统和环境信息
+
+  - type: textarea
+    id: description
+    attributes:
+      label: 🧩 Bug 描述
+      description: 清楚地描述问题发生的现象
+      placeholder: 例如:“点击按钮后页面无响应,并在控制台中出现报错……”
+    validations:
+      required: true
+
+  - type: textarea
+    id: reproduce
+    attributes:
+      label: 🔁 复现步骤
+      description: 请详细描述如何重现该问题
+      placeholder: |
+        1. 打开页面 …
+        2. 点击按钮 …
+        3. 出现错误 …
+    validations:
+      required: true
+
+  - type: textarea
+    id: expected
+    attributes:
+      label: ✅ 期望结果
+      description: 正常情况下你希望发生的行为
+      placeholder: “页面应正确加载数据并显示提示信息”
+
+  - type: textarea
+    id: logs
+    attributes:
+      label: 🪵 日志或截图
+      description: 如有相关报错信息、终端输出或截图,请在此附上(可拖拽上传)
+      placeholder: 复制错误日志或上传截图
+
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: 🔍 提交前确认
+      options:
+        - label: 我已搜索过现有的 issue,未发现重复
+          required: true
+        - label: 我已确认该问题可以被复现
+          required: true