Skip to content

Commit

Permalink
chore: use form for issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jul 13, 2024
1 parent 9a5d296 commit 644eb29
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 79 deletions.
52 changes: 0 additions & 52 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

89 changes: 89 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
#
# SPDX-License-Identifier: GPL-3.0-or-later

name: 问题报告 / Bug Report
description: 创建问题报告以帮助我们改进。请尽量先尝试[每夜版](https://github.com/osfans/trime/releases/tag/nightly)有无此问题。 / Create a bug report to help us improve. Please test [Nightly](https://github.com/osfans/trime/releases/tag/nightly) for the issue first.
labels:
- bug

body:
- type: textarea
id: summary
attributes:
label: 摘要 / Summary
description: 简要描述遇到的问题。 / Briefly describe the bug.
validations:
required: true

- type: textarea
id: step_to_reproduce
attributes:
label: 重现步骤 / Steps to Reproduce
description: 如何重现该问题。 / How to reproduce the bug.
placeholder: |
1. 打开某界面 / Open page ...
2. 点击某菜单 / Click menu ...
3. 某处出问题 / Something went wrong ...
validations:
required: true

- type: textarea
id: expected_behavior
attributes:
label: 预期行为 / Expected Behavior
description: 完成上述步骤后应该发生什么。 / What is expected to happen after the steps above.
validations:
required: true

- type: textarea
id: log
attributes:
label: 日志 / Log
description: 附上日志以帮助定位问题。 / Attach log to help locate the bug.
validations:
required: false

- type: textarea
id: screenshot
attributes:
label: 截图 / Screenshot
description: 附上截图以帮助解释问题。 / Attach screenshots to help explain the bug.
validations:
required: false

- type: textarea
id: additional_context
attributes:
label: 附加信息 / Additional Context
description: 与此问题相关的上下文信息,比如在问题出现前做了什么、使用了什么主题等。 / Additional context about the bug, eg. what did you do before the bug appears or what theme you are using, etc.
validations:
required: false

- type: markdown
attributes:
value: |
### 设备信息 / Device Infomation
- type: input
id: os_version
attributes:
label: 系统版本 / OS Version
validations:
required: true

- type: input
id: app_version
attributes:
label: 应用版本 / App Version
description: “关于”页面中的“更新日志”条目,长按复制。 / It could be found below "Changelog" in the "About" page, long press to copy it.
validations:
required: true

- type: textarea
id: build_info
attributes:
label: 构建信息 / Build Information
description: “关于”页面中的“构建信息”条目,长按复制。 / It could be found below "Build information" in the "About" page, loog press to copy it.
validations:
required: true
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

blank_issues_enabled: false

contact_links:
- name: GitHub 讨论区 / GitHub Discussions
url: https://github.com/osfans/trime/discussions
about: 请在这里提出有关如何使用本输入法的疑问。 / Please ask questions about how to use the input method here.
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
#
# SPDX-License-Identifier: GPL-3.0-or-later

name: 功能请求 / Feature Request
description: 为本项目提供新功能建议 / Suggest a new feature for this project
labels:
- enhancement

body:
- type: textarea
id: summary
attributes:
label: 摘要 / Summary
description: 新功能应该做什么。 / What the new feature should do.
validations:
required: true

- type: textarea
id: alternative
attributes:
label: 替代方案 / Alternative Solution
description: 其它可能的解决方案(如果有)。 / Other possible solutions, if any.
validations:
required: false

- type: textarea
id: additional_context
attributes:
label: 附加信息 / Additional Context
description: 与此功能请求有关的上下文信息或截图。 / Additional context or screenshots about the feature request.
validations:
required: false

- type: markdown
attributes:
value: |
### 设备信息 / Device Infomation
- type: input
id: os_version
attributes:
label: 系统版本 / OS Version
validations:
required: true

- type: input
id: app_version
attributes:
label: 应用版本 / App Version
description: “关于”页面中的“更新日志”条目,长按复制。 / It could be found below "Changelog" in the "About" page, long press to copy it.
validations:
required: true

- type: textarea
id: build_info
attributes:
label: 构建信息 / Build Information
description: “关于”页面中的“构建信息”条目,长按复制。 / It could be found below "Build information" in the "About" page, loog press to copy it.
validations:
required: true

0 comments on commit 644eb29

Please sign in to comment.