chore(styles): 添加代码格式化依赖 #12
69
.gitea/PULL_REQUEST_TEMPLATE.yaml
Normal file
69
.gitea/PULL_REQUEST_TEMPLATE.yaml
Normal file
@ -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 有变化)**
|
||||
Reference in New Issue
Block a user