Răsfoiți Sursa

fix(issue-template): let users attach screenshots to bug reports (#62)

The Bug report form had a single combined Logs/Screenshots/Crash field
with `render: shell`. GitHub disables image upload (drag-drop / paste)
inside any render-typed textarea, so reporters who tried to attach a
screenshot saw 'upload failed' and gave up.

Split the field in two:
- 'Logs or crash report' keeps `render: shell` for nicely formatted
  stack traces.
- 'Screenshots' is a plain textarea so drag-drop / paste image upload
  works.

Closes #53.
Jiachen Yu 5 luni în urmă
părinte
comite
cd02537579
1 a modificat fișierele cu 16 adăugiri și 2 ștergeri
  1. 16 2
      .github/ISSUE_TEMPLATE/01-bug-report.yml

+ 16 - 2
.github/ISSUE_TEMPLATE/01-bug-report.yml

@@ -99,12 +99,26 @@ body:
   - type: textarea
     id: logs
     attributes:
-      label: Logs, screenshots, or crash reports / 日志、截图或崩溃信息
-      description: Please remove secrets, tokens, API keys, private paths, and private code.
+      label: Logs or crash report / 日志或崩溃信息
+      description: |
+        Paste the relevant log lines or stack trace here. They will be rendered as a code block.
+        Please remove secrets, tokens, API keys, private paths, and private code.
+        粘贴相关日志或堆栈,会自动按代码块渲染。
+        提交前请移除 Secret、Token、API Key、私有路径和私有代码。
       render: shell
     validations:
       required: false
 
+  - type: textarea
+    id: screenshots
+    attributes:
+      label: Screenshots / 截图
+      description: |
+        Drag and drop screenshots here, or paste them directly. (GitHub disables image upload inside the Logs field above, so screenshots go here.)
+        把截图直接拖到这里,或者粘贴。(上面「日志」字段是代码块,GitHub 不允许在里面贴图,所以截图请放这里。)
+    validations:
+      required: false
+
   - type: checkboxes
     id: checklist
     attributes: