Skip to content

Commit cd02537

Browse files
authored
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.
1 parent 663e227 commit cd02537

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/ISSUE_TEMPLATE/01-bug-report.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,26 @@ body:
9999
- type: textarea
100100
id: logs
101101
attributes:
102-
label: Logs, screenshots, or crash reports / 日志、截图或崩溃信息
103-
description: Please remove secrets, tokens, API keys, private paths, and private code.
102+
label: Logs or crash report / 日志或崩溃信息
103+
description: |
104+
Paste the relevant log lines or stack trace here. They will be rendered as a code block.
105+
Please remove secrets, tokens, API keys, private paths, and private code.
106+
粘贴相关日志或堆栈,会自动按代码块渲染。
107+
提交前请移除 Secret、Token、API Key、私有路径和私有代码。
104108
render: shell
105109
validations:
106110
required: false
107111

112+
- type: textarea
113+
id: screenshots
114+
attributes:
115+
label: Screenshots / 截图
116+
description: |
117+
Drag and drop screenshots here, or paste them directly. (GitHub disables image upload inside the Logs field above, so screenshots go here.)
118+
把截图直接拖到这里,或者粘贴。(上面「日志」字段是代码块,GitHub 不允许在里面贴图,所以截图请放这里。)
119+
validations:
120+
required: false
121+
108122
- type: checkboxes
109123
id: checklist
110124
attributes:

0 commit comments

Comments
 (0)