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 label: "可选:截图或 Demo(如界面/UI 有变化)"