From de3ea1c8f23a6ed7b041f403a6fd58f80acc5268 Mon Sep 17 00:00:00 2001 From: Evan Luo Date: Sun, 1 Dec 2024 19:42:03 -0500 Subject: [PATCH] feat: Enhance issue templates with required fields and updated labels - Add required validation for priority field in bug-english.yml - Update label for configuration sync in bug-chinese.yml - Add required validation for priority field in bug-chinese.yml --- .github/ISSUE_TEMPLATE/bug-chinese.yml | 4 +++- .github/ISSUE_TEMPLATE/bug-english.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug-chinese.yml b/.github/ISSUE_TEMPLATE/bug-chinese.yml index 363ca3c1..adae51f3 100644 --- a/.github/ISSUE_TEMPLATE/bug-chinese.yml +++ b/.github/ISSUE_TEMPLATE/bug-chinese.yml @@ -18,7 +18,7 @@ body: required: true - label: 我已更新到[最新版本](https://redefine-docs.ohevan.com/getting-started#%E6%9B%B4%E6%96%B0) required: true - - label: 我已确认[同步了主题配置文件](https://redefine-docs.ohevan.com/getting-started#%E8%BF%81%E7%A7%BB%E9%85%8D%E7%BD%AE) + - label: 我已确认[同步了主题最新配置文件](https://redefine-docs.ohevan.com/getting-started#%E8%BF%81%E7%A7%BB%E9%85%8D%E7%BD%AE) required: true - type: textarea @@ -98,6 +98,8 @@ body: - type: dropdown id: priority + validations: + required: true attributes: label: 优先级 description: 请根据问题的严重程度选择优先级 diff --git a/.github/ISSUE_TEMPLATE/bug-english.yml b/.github/ISSUE_TEMPLATE/bug-english.yml index f5dcd75f..07838d02 100644 --- a/.github/ISSUE_TEMPLATE/bug-english.yml +++ b/.github/ISSUE_TEMPLATE/bug-english.yml @@ -89,6 +89,8 @@ body: - type: dropdown id: priority + validations: + required: true attributes: label: "Priority" description: "Please select the priority based on the severity of the issue."