Add AI bug report template
This commit is contained in:
@@ -0,0 +1,181 @@
|
||||
name: 🤖 Bug Report for AI Fix
|
||||
description: Bug 报告模板(提交后请手动添加 'fix via ai' 标签触发自动修复)
|
||||
title: '[Bug] '
|
||||
assignees: []
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Bug 报告 🐛
|
||||
|
||||
本模板用于报告 PolyHermes 项目的 bug。
|
||||
|
||||
⚠️ **重要提示**:
|
||||
- 提交 issue 后,如需 AI 自动修复,请手动添加 `fix via ai` 标签
|
||||
- AI 修复会在专用分支 `fix_issues_by_ai` 上进行
|
||||
- 所有 AI 修复需要人工审核后才能合并
|
||||
- 涉及安全漏洞、数据库迁移、重大变更等问题不建议使用 AI 自动修复
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: 📝 Bug 描述
|
||||
description: 清晰简洁地描述这个 bug
|
||||
placeholder: 描述你遇到的问题...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: type
|
||||
attributes:
|
||||
label: 🎯 问题类型
|
||||
description: 选择问题类型
|
||||
options:
|
||||
- 前端 bug (UI/UX/交互问题)
|
||||
- 后端 bug (API/逻辑/数据处理)
|
||||
- 数据库问题
|
||||
- 性能问题
|
||||
- 配置/部署问题
|
||||
- 文档问题
|
||||
- 其他
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: scope
|
||||
attributes:
|
||||
label: 📍 影响范围
|
||||
description: 选择问题影响范围
|
||||
options:
|
||||
- 仅影响特定页面/功能
|
||||
- 影响整个系统
|
||||
- 影响特定用户角色
|
||||
- 仅在特定环境下重现
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: 🔍 复现步骤
|
||||
description: 提供清晰、详细的步骤来重现这个 bug
|
||||
placeholder: |
|
||||
1. 访问页面:`...`
|
||||
2. 点击按钮:`...`
|
||||
3. 输入数据:`...`
|
||||
4. 提交表单:`...`
|
||||
5. 观察到错误:`...`
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: frequency
|
||||
attributes:
|
||||
label: 复现频率
|
||||
options:
|
||||
- 总是能复现 (100%)
|
||||
- 经常能复现 (50%+)
|
||||
- 偶尔能复现 (<50%)
|
||||
- 很难复现
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: 💻 预期行为
|
||||
description: 描述你期望发生什么
|
||||
placeholder: 应该发生什么...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: ❌ 实际行为
|
||||
description: 描述实际发生了什么
|
||||
placeholder: 实际发生了什么...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: 📸 截图/录屏
|
||||
description: 如果适用,添加截图或录屏来说明问题(可以拖拽文件到这里)
|
||||
placeholder: 添加截图或录屏...
|
||||
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
label: 🌐 环境
|
||||
description: 提供相关环境信息
|
||||
value: |
|
||||
**浏览器(前端问题):**
|
||||
- 浏览器:______
|
||||
- 浏览器版本:______
|
||||
- 操作系统:______
|
||||
|
||||
**后端环境(后端问题):**
|
||||
- Node.js 版本:______
|
||||
- 数据库版本:______
|
||||
- Docker 版本:______
|
||||
- 其他相关依赖版本:______
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: related-files
|
||||
attributes:
|
||||
label: 📁 相关文件/代码
|
||||
description: 提供可能涉及的文件路径或相关代码片段
|
||||
placeholder: |
|
||||
可能涉及的文件:
|
||||
- frontend/src/components/...
|
||||
- backend/src/main/kotlin/...
|
||||
|
||||
错误日志:
|
||||
```
|
||||
粘贴错误日志
|
||||
```
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: suggestions
|
||||
attributes:
|
||||
label: 🎯 修复建议(可选)
|
||||
description: 如果你有修复思路,可以在这里简单描述
|
||||
placeholder: 建议在 XXX 文件的 YYY 方法中,添加 ZZZ 检查...
|
||||
|
||||
- type: dropdown
|
||||
id: priority
|
||||
attributes:
|
||||
label: 🚨 优先级
|
||||
options:
|
||||
- 🔴 高 - 阻塞核心功能,影响用户体验
|
||||
- 🟡 中 - 功能受限但不阻塞
|
||||
- 🟢 低 - 小问题,不影响使用
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: 📝 补充说明
|
||||
description: 任何其他有助于 AI 理解和修复问题的信息
|
||||
placeholder: |
|
||||
- 这个 bug 是最近引入的吗?
|
||||
- 是否与某个特定的 PR 或 commit 相关?
|
||||
- 是否只在特定数据集或特定用户情况下出现?
|
||||
|
||||
- type: checkboxes
|
||||
id: ai-fix-approval
|
||||
attributes:
|
||||
label: 🤖 AI 自动修复确认
|
||||
description: 如需 AI 自动修复此 issue,请勾选下方选项(提交后记得添加 'fix via ai' 标签)
|
||||
options:
|
||||
- label: 我已了解 AI 自动修复的工作流程,并同意在 AI 创建 PR 后进行人工审核
|
||||
required: false
|
||||
- label: 此问题适合 AI 自动修复(非安全漏洞、非数据库迁移、非重大变更)
|
||||
required: false
|
||||
Reference in New Issue
Block a user