chore(github): translate templates to English and improve content

- Convert issue and PR templates to English only for broader reach
- Bug report: add Steps to Reproduce, Actual Behavior, WeKnora Version,
  and Deployment Method as required fields; expand log guide to cover
  Lite / Desktop / source builds
- Feature request: replace user-selected Priority with Impact to reduce
  severity inflation
- PR template: slim down to 6 sections, add Conventional Commits hint
  in the title, and require `make fmt && make lint && make test` in the
  checklist
This commit is contained in:
wizardchen
2026-05-12 18:27:38 +08:00
committed by lyingbug
parent b387f3637a
commit f635eaf466
5 changed files with 200 additions and 196 deletions
+88 -43
View File
@@ -1,82 +1,127 @@
name: 🐛 Bug 报告 name: 🐛 Bug Report
description: 报告一个 bug 或问题 description: Report a bug or issue
title: "[Bug]: " title: "[Bug]: "
labels: ["bug", "needs-triage"] labels: ["bug", "needs-triage"]
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
感谢您报告 bug!请填写以下信息帮助我们快速定位和解决问题。 Thanks for reporting a bug! Please fill in the information below to help us locate and fix the issue quickly.
- type: dropdown - type: dropdown
id: component id: component
attributes: attributes:
label: 相关组件 label: Affected Component
description: 选择出现问题的组件 description: Select the component where the issue occurs
options: options:
- 前端界面 - Frontend UI
- 后端服务及API - Backend Service & API
- 文档解析服务 - Document Reader Service
- 向量数据库 - Vector Database
- 模型服务 - Model Service
- 其他 - Other
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: description id: description
attributes: attributes:
label: Bug 描述 label: Bug Description
description: 请详细描述遇到的问题 description: A clear and concise description of the issue
placeholder: "请描述 bug 的具体表现..." placeholder: "Describe what the bug looks like..."
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to Reproduce
description: Minimal steps that reliably reproduce the problem
placeholder: |
1. Go to '...'
2. Click on '...'
3. Send request '...'
4. See error
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: expected id: expected
attributes: attributes:
label: 期望行为 label: Expected Behavior
description: 描述您期望的正确行为 description: Describe what you expected to happen
placeholder: "应该发生什么..." placeholder: "What should have happened..."
validations: validations:
required: true required: true
- type: markdown
attributes:
value: |
## 📋 日志收集指南
请按照以下步骤收集相关日志:
docker compose logs -f --tail=1000 app docreader postgres
请重现问题并收集相关日志,然后粘贴到下面的日志字段中。
- type: textarea - type: textarea
id: logs id: actual
attributes: attributes:
label: 相关日志 label: Actual Behavior
description: 请按照上面的指南收集并粘贴相关日志 description: Describe what actually happened (error messages, screenshots, etc.)
placeholder: | placeholder: "What actually happened..."
请粘贴从以下命令收集的日志: validations:
docker compose logs -f --tail=1000 app docreader postgres required: true
render: shell
- type: input
id: version
attributes:
label: WeKnora Version
description: The WeKnora version or commit you are running
placeholder: "e.g., v0.5.0, or commit abc1234"
validations:
required: true
- type: dropdown
id: deployment
attributes:
label: Deployment Method
description: How are you running WeKnora?
options:
- Docker Compose
- Build from source
- Lite (single binary)
- Desktop app
- Kubernetes (Helm)
- Other
validations:
required: true
- type: input - type: input
id: os id: os
attributes: attributes:
label: 操作系统 label: Operating System
description: 您当前使用的操作系统 description: The operating system you are using
placeholder: "例如: macOS 13.0, Ubuntu 20.04, Windows 11" placeholder: "e.g., macOS 13.0, Ubuntu 20.04, Windows 11"
validations: validations:
required: true required: true
- type: markdown
attributes:
value: |
## 📋 Log Collection Guide
Please collect logs and paste them into the field below. Pick the command matching your deployment:
- Docker Compose:
```bash
docker compose logs -f --tail=1000 app docreader postgres
```
- Lite / Desktop / build from source: include the console output or log files (e.g., `logs/*.log`).
- type: textarea
id: logs
attributes:
label: Relevant Logs
description: Paste relevant logs or error messages here
placeholder: "Paste logs or error messages..."
render: shell
- type: checkboxes - type: checkboxes
id: terms id: terms
attributes: attributes:
label: 确认事项 label: Confirmation
description: 请确认以下事项 description: Please confirm the following
options: options:
- label: 我已经搜索了现有的 issues,确认这是一个新问题 - label: I have searched existing issues and confirmed this is a new one
required: true required: true
+4 -4
View File
@@ -1,8 +1,8 @@
blank_issues_enabled: false blank_issues_enabled: false
contact_links: contact_links:
- name: WeKnora 文档 - name: WeKnora Documentation
url: https://github.com/Tencent/WeKnora/blob/main/docs/QA.md url: https://github.com/Tencent/WeKnora/blob/main/docs/QA.md
about: 查看 WeKnora 的常见问题解答 about: Check WeKnora FAQ
- name: 讨论区 - name: Discussions
url: https://github.com/Tencent/WeKnora/discussions url: https://github.com/Tencent/WeKnora/discussions
about: 在讨论区提问或分享想法 about: Ask questions or share ideas in Discussions
+39 -39
View File
@@ -1,88 +1,88 @@
name: ✨ 功能请求 name: ✨ Feature Request
description: 建议新功能或改进现有功能 description: Suggest a new feature or improvement
title: "[Feature]: " title: "[Feature]: "
labels: ["enhancement", "needs-triage"] labels: ["enhancement", "needs-triage"]
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
感谢您提出功能请求!请详细描述您的建议,这将帮助我们更好地理解您的需求。 Thanks for the feature request! Please describe your idea in detail so we can better understand your needs.
- type: dropdown - type: dropdown
id: component id: component
attributes: attributes:
label: 相关组件 label: Affected Component
description: 选择功能请求相关的组件 description: Select the component related to this request
options: options:
- 前端界面 - Frontend UI
- 后端服务及API - Backend Service & API
- 文档解析服务 - Document Reader Service
- 向量数据库 - Vector Database
- 模型服务 - Model Service
- 配置管理 - Configuration Management
- 其他 - Other
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: problem id: problem
attributes: attributes:
label: 问题描述 label: Problem Description
description: 请描述您遇到的问题或当前功能的不足 description: Describe the problem or limitation of the current feature
placeholder: "当前功能有什么问题或限制?" placeholder: "What is wrong or missing today?"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: solution id: solution
attributes: attributes:
label: 建议的解决方案 label: Proposed Solution
description: 请详细描述您希望看到的功能或改进 description: Describe the feature or improvement you would like to see
placeholder: "您希望如何解决这个问题?" placeholder: "How would you like to solve it?"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: alternatives id: alternatives
attributes: attributes:
label: 替代方案 label: Alternatives
description: 描述您考虑过的其他解决方案 description: Describe alternative solutions you have considered
placeholder: "您是否考虑过其他解决方案?" placeholder: "Any alternatives you considered?"
- type: dropdown - type: dropdown
id: priority id: impact
attributes: attributes:
label: 优先级 label: Impact
description: 您认为这个功能请求的优先级如何? description: Who is affected by the absence of this feature?
options: options:
- 低 - 可以稍后考虑 - Just me / a personal preference
- 中 - 有一定价值 - My team or a small group
- 高 - 对工作流程很重要 - Many users would benefit
- 紧急 - 阻塞了重要工作 - Blocking adoption of WeKnora
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: usecase id: usecase
attributes: attributes:
label: 使用场景 label: Use Case
description: 请描述这个功能的具体使用场景 description: Describe the specific use case for this feature
placeholder: "在什么情况下您会使用这个功能?" placeholder: "When would you use this feature?"
- type: textarea - type: textarea
id: additional id: additional
attributes: attributes:
label: 补充信息 label: Additional Information
description: 任何其他相关信息、截图或链接 description: Any other context, screenshots, or links
placeholder: "添加任何其他相关信息..." placeholder: "Add any other relevant information..."
- type: checkboxes - type: checkboxes
id: terms id: terms
attributes: attributes:
label: 确认事项 label: Confirmation
description: 请确认以下事项 description: Please confirm the following
options: options:
- label: 我已经搜索了现有的 issues,确认这是一个新的功能请求 - label: I have searched existing issues and confirmed this is a new request
required: true
- label: I understand this request may need discussion and evaluation
required: true required: true
- label: 我理解这个功能请求可能需要讨论和评估
required: true
+44 -44
View File
@@ -1,73 +1,73 @@
name: ❓ 问题咨询 name: ❓ Question
description: 询问关于 WeKnora 的问题或寻求帮助 description: Ask a question about WeKnora or seek help
title: "[Question]: " title: "[Question]: "
labels: ["question", "needs-triage"] labels: ["question", "needs-triage"]
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
欢迎提问!请提供足够的信息,这样我们就能更好地帮助您。 Welcome! Please provide enough information so we can help you effectively.
- type: dropdown - type: dropdown
id: category id: category
attributes: attributes:
label: 问题类别 label: Question Category
description: 选择您的问题类别 description: Select the category of your question
options: options:
- 安装和部署 - Installation & Deployment
- 配置问题 - Configuration
- 使用问题 - Usage
- 性能问题 - Performance
- 集成问题 - Integration
- 其他 - Other
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: question id: question
attributes: attributes:
label: 问题描述 label: Question Description
description: 请详细描述您的问题 description: Please describe your question in detail
placeholder: "您遇到了什么问题?需要什么帮助?" placeholder: "What problem did you encounter? What help do you need?"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: context id: context
attributes: attributes:
label: 背景信息 label: Context
description: 请提供相关的背景信息 description: Please provide relevant context
placeholder: | placeholder: |
- 您正在尝试做什么? - What are you trying to do?
- 您期望的结果是什么? - What outcome do you expect?
- 您已经尝试了什么? - What have you tried so far?
- type: input - type: input
id: os id: os
attributes: attributes:
label: 操作系统 label: Operating System
description: 您当前使用的操作系统 description: The operating system you are using
placeholder: "例如: macOS 13.0, Ubuntu 20.04, Windows 11" placeholder: "e.g., macOS 13.0, Ubuntu 20.04, Windows 11"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: environment id: environment
attributes: attributes:
label: 其他环境信息 label: Other Environment Info
description: 请提供其他相关的环境信息 description: Please provide other relevant environment information
placeholder: | placeholder: |
- WeKnora 版本: [例如: v1.0.0] - WeKnora Version: [e.g., v1.0.0]
- 部署方式: [例如: Docker, 源码编译] - Deployment: [e.g., Docker, build from source]
- 其他相关信息... - Other relevant info...
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
## 📋 日志收集指南(如需要) ## 📋 Log Collection Guide (if needed)
如果问题涉及错误或需要调试,请收集相关日志: If the issue involves errors or requires debugging, please collect logs:
```bash ```bash
docker compose logs -f --tail=1000 app docreader postgres docker compose logs -f --tail=1000 app docreader postgres
``` ```
@@ -75,28 +75,28 @@ body:
- type: textarea - type: textarea
id: logs id: logs
attributes: attributes:
label: 相关日志 label: Relevant Logs
description: 如果有相关日志或错误信息,请粘贴在这里 description: Paste relevant logs or error messages here if available
placeholder: "粘贴相关日志或错误信息..." placeholder: "Paste logs or error messages..."
render: shell render: shell
- type: textarea - type: textarea
id: research id: research
attributes: attributes:
label: 已查找的资源 label: Resources Already Checked
description: 请列出您已经查看过的文档、issues 或其他资源 description: List the docs, issues or other resources you've already checked
placeholder: | placeholder: |
- 已查看的文档: [例如: README.md, API.md] - Docs checked: [e.g., README.md, API.md]
- 已查看的 issues: [例如: #123, #456] - Issues checked: [e.g., #123, #456]
- 其他资源: [例如: 官方文档, Stack Overflow] - Other resources: [e.g., official docs, Stack Overflow]
- type: checkboxes - type: checkboxes
id: terms id: terms
attributes: attributes:
label: 确认事项 label: Confirmation
description: 请确认以下事项 description: Please confirm the following
options: options:
- label: 我已经搜索了现有的 issues 和文档 - label: I have searched existing issues and documentation
required: true
- label: I have provided enough information to help understand the question
required: true required: true
- label: 我已经提供了足够的信息来帮助理解问题
required: true
+25 -66
View File
@@ -1,73 +1,32 @@
# Pull Request <!-- Title should follow Conventional Commits, e.g. `feat: ...`, `fix: ...`, `docs: ...` -->
## 描述 (Description) ## Description
<!-- 请简要描述这个 PR 的目的和变更内容 --> <!-- Briefly describe the purpose and changes of this PR -->
## 变更类型 (Type of Change) ## Type of Change
<!-- 请选择适用的类型,删除其他选项 --> <!-- Check applicable items -->
- [ ] 🐛 Bug 修复 (Bug fix) - [ ] 🐛 Bug fix
- [ ] ✨ 新功能 (New feature) - [ ] ✨ New feature
- [ ] 💥 破坏性变更 (Breaking change) - [ ] 💥 Breaking change
- [ ] 📚 文档更新 (Documentation update) - [ ] 📚 Documentation update
- [ ] 🎨 代码重构 (Code refactoring) - [ ] 🎨 Refactor
- [ ] ⚡ 性能优化 (Performance improvement) - [ ] ⚡ Performance improvement
- [ ] 🧪 测试相关 (Test related) - [ ] 🧪 Test
- [ ] 🔧 配置变更 (Configuration change) - [ ] 🔧 Configuration / Build / CI
- [ ] 🐳 Docker 相关 (Docker related)
- [ ] 🎨 前端 UI/UX (Frontend UI/UX)
## 影响范围 (Scope) ## Related Issue
<!-- 请选择受影响的组件,删除其他选项 --> <!-- If this PR resolves an issue, use "Fixes #123" or "Closes #123" -->
- [ ] 后端 API (Backend API)
- [ ] 前端界面 (Frontend UI)
- [ ] 数据库 (Database)
- [ ] 文档解析服务 (Document Reader Service)
- [ ] MCP 服务器 (MCP Server)
- [ ] Docker 配置 (Docker Configuration)
- [ ] 配置文件 (Configuration)
- [ ] 其他 (Other): <!-- 请说明 -->
## 测试 (Testing)
<!-- 请描述如何测试这些变更 -->
- [ ] 单元测试 (Unit tests)
- [ ] 集成测试 (Integration tests)
- [ ] 手动测试 (Manual testing)
- [ ] 前端测试 (Frontend testing)
- [ ] API 测试 (API testing)
### 测试步骤 (Test Steps)
1.
2.
3.
## 检查清单 (Checklist)
<!-- 请确保完成以下检查项 -->
- [ ] 代码遵循项目的编码规范
- [ ] 已进行自我代码审查
- [ ] 代码变更已添加适当的注释
- [ ] 相关文档已更新
- [ ] 变更不会产生新的警告
- [ ] 已添加测试用例证明修复有效或功能正常
- [ ] 新功能和变更已更新到相关文档
- [ ] 破坏性变更已在描述中明确说明
## 相关 Issue
<!-- 如果此 PR 解决了某个 issue,请使用 "Fixes #123" 或 "Closes #123" 的格式 -->
Fixes # Fixes #
## 截图/录屏 (Screenshots/Recordings) ## Testing
<!-- 如果是前端 UI 变更,请提供截图或录屏 --> <!-- Describe how these changes were tested. Include reproduction or verification steps. -->
## 数据库迁移 (Database Migration) ## Checklist
<!-- 如果涉及数据库变更,请说明 --> - [ ] `make fmt && make lint && make test` pass locally
- [ ] 需要数据库迁移 - [ ] Self-reviewed the code
- [ ] 不需要数据库迁移 - [ ] Added/updated tests covering the change
- [ ] Updated related documentation (README, `docs/`, Swagger annotations, etc.)
- [ ] Breaking changes are clearly called out in the description above
## 配置变更 (Configuration Changes) ## Screenshots / Recordings
<!-- 如果涉及配置变更,请说明需要更新的配置项 --> <!-- Required for user-visible UI changes -->
## 部署说明 (Deployment Notes)
<!-- 如果有特殊的部署要求,请说明 -->
## 其他信息 (Additional Information)
<!-- 任何其他需要说明的信息 -->