From 4c347a5bd711e637665444747e057c8d3e31b5bb Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Fri, 19 Dec 2025 14:57:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0gitea=20ISSUE/PR?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/ISSUE_TEMPLATE/BUG_REPORT.yaml | 61 +++++++++++++++++++++ .gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml | 53 ++++++++++++++++++ .gitea/PULL_REQUEST_TEMPLATE.yaml | 62 ++++++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 .gitea/ISSUE_TEMPLATE/BUG_REPORT.yaml create mode 100644 .gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml create mode 100644 .gitea/PULL_REQUEST_TEMPLATE.yaml diff --git a/.gitea/ISSUE_TEMPLATE/BUG_REPORT.yaml b/.gitea/ISSUE_TEMPLATE/BUG_REPORT.yaml new file mode 100644 index 0000000..26c069b --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/BUG_REPORT.yaml @@ -0,0 +1,61 @@ +name: Bug报告 +about: 用于报告项目中的Bug,帮助我们改进项目 +title: '[BUG] ' # 新开 Issue 时默认加的前缀 + +body: + - type: markdown + attributes: + value: | + 请在下方填写Bug的详细信息,包括重现步骤、预期结果和实际结果等。 + - type: textarea + id: summary + attributes: + label: '问题概述/Summary' + description: '简要描述遇到的问题' + placeholder: '输入问题概述' + validations: + required: true + - type: textarea + id: steps + attributes: + label: '重现步骤/Steps to Reproduce' + description: '列出重现该问题的具体步骤' + placeholder: '输入重现步骤' + validations: + required: true + - type: textarea + id: expected + attributes: + label: '预期结果/Expected Behavior' + description: '描述你期望看到的结果' + placeholder: '输入预期结果' + validations: + required: true + - type: textarea + id: actual + attributes: + label: '实际结果/Actual Behavior' + description: '描述实际发生的情况' + placeholder: '输入实际结果' + validations: + required: true + - type: textarea + id: environment + attributes: + label: '环境信息/Environment' + description: '提供相关环境信息,如操作系统、浏览器版本等' + placeholder: '输入环境信息' + validations: + required: false + - type: checkboxes + id: checklist + attributes: + label: '检查表/Checklist' + description: '提交前,请确认以下事项' + options: + - label: 已搜索过类似问题,确保不是重复报告 + required: true + - label: 提供了足够的信息以帮助我们理解和重现问题 + required: true + - label: 如果可能,已附上相关截图或日志文件 + required: false diff --git a/.gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml b/.gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml new file mode 100644 index 0000000..716e83f --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml @@ -0,0 +1,53 @@ +name: 功能请求 +about: 用于提出新功能或改进建议 +title: '[FEATURE] ' # 新开 Issue 时默认加的前缀 + +body: + - type: markdown + attributes: + value: | + 请在下方填写功能请求的详细信息,包括需求背景、预期效果和相关上下文。 + - type: textarea + id: summary + attributes: + label: '功能概述/Summary' + description: '简要描述你希望添加的功能' + placeholder: '输入功能概述' + validations: + required: true + - type: textarea + id: motivation + attributes: + label: '需求背景/Motivation' + description: '说明为什么需要这个功能,它将如何帮助用户或改进现有流程' + placeholder: '输入需求背景' + validations: + required: true + - type: textarea + id: proposal + attributes: + label: '解决方案/Proposal' + description: '描述你对该功能的设想或建议的实现方式' + placeholder: '输入解决方案' + validations: + required: false + - type: textarea + id: alternatives + attributes: + label: '替代方案/Alternatives' + description: '如果有其他可行的替代方案,请在此列出' + placeholder: '输入替代方案' + validations: + required: false + - type: checkboxes + id: checklist + attributes: + label: '检查表/Checklist' + description: '提交前,请确认以下事项' + options: + - label: 已搜索过类似功能请求,确保不是重复提交 + required: true + - label: 提供了足够的信息以帮助我们理解和评估该请求 + required: true + - label: 如果可能,已附上相关截图或示意图 + required: false diff --git a/.gitea/PULL_REQUEST_TEMPLATE.yaml b/.gitea/PULL_REQUEST_TEMPLATE.yaml new file mode 100644 index 0000000..406650e --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.yaml @@ -0,0 +1,62 @@ +name: 'Standard PR 模板' +about: '用于提交新功能/修复bug/改进重构等合并请求' +title: '[PR] ' # 新开 PR 时默认加的前缀 +ref: 'master' # 默认目标分支,可根据你们主分支改为 master/develop 等 + +body: + - type: markdown + attributes: + value: | + 请在下方填写合并请求描述,包括变更目的、主要内容及相关上下文。 + - type: textarea + attributes: + label: '关联Issue' + description: '比如: Fixes #123/Closes #456/如果没有可以留空' + placeholder: '输入关联 issue 编号' + validations: + required: false + - type: textarea + attributes: + label: '更改内容/What Changed' + description: '列出本次 PR 的主要变更项,便于 Review' + placeholder: '输入更改内容' + validations: + required: true + - type: textarea + attributes: + label: '测试步骤/How To Test' + description: '提供复现/验证更改的步骤,含环境/命令/预期结果等' + placeholder: '输入测试步骤' + validations: + required: false + - type: checkboxes + attributes: + label: '检查表/Checklist' + description: '提交前,请确认以下事项' + options: + - label: 代码格式符合团队规范 + required: true + - label: 已添加或更新单元测试/集成测试 + required: true + - label: 文档/README 已更新(如有必要) + required: false + - label: 所有测试通过 + required: true + - label: 分支命名正确(feature/xxx或fix/xxx 等) + required: false + - label: 回归风险已评估 + required: false + validations: + required: true + - type: textarea + id: impact + attributes: + label: '影响评估/Risk & Rollback' + description: '评估变更是否有破坏性风险,以及如何回滚/缓解' + placeholder: '例如:数据库迁移、依赖变动、兼容性问题等' + validations: + required: false + - type: textarea + attributes: + label: '可选:截图或 Demo(如界面/UI 有变化)' + description: '上传新的界面/UI'