From 752cbcd1a106d35e82aadbccc3a8cda98eafb7d2 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 17 Sep 2025 16:20:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=88=9B=E5=BB=BA=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/PULL_REQUEST_TEMPLATE.yaml | 69 +++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .gitea/PULL_REQUEST_TEMPLATE.yaml diff --git a/.gitea/PULL_REQUEST_TEMPLATE.yaml b/.gitea/PULL_REQUEST_TEMPLATE.yaml new file mode 100644 index 0000000..73942a3 --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.yaml @@ -0,0 +1,69 @@ +name: "Standard PR 模板" +about: "用于提交新功能/修复bug/改进重构等合并请求" +title: "[PR] " # 新开 PR 时默认加的前缀 +ref: "main" # 默认目标分支,可根据你们主分支改为 master/develop 等 + +body: + - type: markdown + attributes: + value: | + 请在下方填写合并请求描述,包括变更目的、主要内容及相关上下文。 + - type: input + id: issue + attributes: + label: "关联Issue" + description: "比如: Fixes #123 / Closes #456 / 如果没有可以留空" + placeholder: "输入关联 issue 编号" + validations: + required: false + - type: textarea + id: changes + attributes: + label: "更改内容/What Changed" + description: "列出本次 PR 的主要变更项,便于 Review" + placeholder: "-xxx\n-yyy\n-zzz" + value: "" + validations: + required: true + - type: textarea + id: test + attributes: + label: "测试步骤/How To Test" + description: "提供复现/验证更改的步骤,含环境/命令/预期结果等" + placeholder: "1. ...\n2. ...\n3. ..." + value: "" + validations: + required: true + - type: checkboxes + id: checklist + 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: "例如:数据库迁移、依赖变动、兼容性问题等" + value: "" + validations: + required: false + - type: markdown + attributes: + value: | + **可选:截图或 Demo(如界面/UI 有变化)** \ No newline at end of file