Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 147 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: 🐛 Bug Report | Bug 报告
description: Create a bug report to help us improve | 创建Bug报告帮助我们改进
title: "[Bug]: "
labels: ["bug", "needs-triage"]
assignees: []
body:
- type: markdown
attributes:
value: |
感谢您花时间填写此Bug报告!请尽可能详细地描述问题。

Thank you for taking the time to fill out this bug report! Please describe the issue in as much detail as possible.

- type: checkboxes
id: prerequisites
attributes:
label: 前置条件 | Prerequisites
description: 在提交之前,请确认您已经检查了以下内容
options:
- label: 我已经搜索了现有的Issues,确认这个问题还没有被报告过
required: true
- label: 我正在使用最新版本的 goofish-client
required: true
- label: 我已经阅读了文档和README
required: true

- type: input
id: version
attributes:
label: 版本信息 | Version
description: 您使用的 goofish-client 版本是什么?
placeholder: "例如: 1.1.2"
validations:
required: true

- type: dropdown
id: environment
attributes:
label: 运行环境 | Environment
description: 您在什么环境下遇到的问题?
options:
- Node.js
- Browser (浏览器)
- React Native
- Electron
- Next.js
- Nuxt.js
- Other (其他)
validations:
required: true

- type: input
id: node-version
attributes:
label: Node.js 版本 | Node.js Version
description: 如果适用,请提供您的 Node.js 版本
placeholder: "例如: v18.17.0"

- type: textarea
id: description
attributes:
label: 问题描述 | Bug Description
description: 请清楚简洁地描述这个Bug
placeholder: 详细描述您遇到的问题...
validations:
required: true

- type: textarea
id: expected
attributes:
label: 期望行为 | Expected Behavior
description: 描述您期望发生什么
placeholder: 描述您期望的正确行为...
validations:
required: true

- type: textarea
id: actual
attributes:
label: 实际行为 | Actual Behavior
description: 描述实际发生了什么
placeholder: 描述实际发生的错误行为...
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: 重现步骤 | Steps to Reproduce
description: 请提供详细的重现步骤
placeholder: |
1. 导入 goofish-client
2. 创建客户端实例
3. 调用特定方法
4. 观察错误
value: |
1.
2.
3.
4.
validations:
required: true

- type: textarea
id: code-sample
attributes:
label: 代码示例 | Code Sample
description: 如果可能,请提供最小可重现的代码示例
render: typescript
placeholder: |
import { Goofish } from 'goofish-client';

const client = new Goofish({
cookie: 'your-cookie'
});

// 重现Bug的代码...

- type: textarea
id: error-logs
attributes:
label: 错误日志 | Error Logs
description: 请粘贴相关的错误信息、堆栈跟踪或日志
render: shell
placeholder: 粘贴错误信息和堆栈跟踪...

- type: textarea
id: additional-context
attributes:
label: 其他信息 | Additional Context
description: 添加任何其他可能有助于我们理解问题的信息
placeholder: |
- 网络环境
- 特殊配置
- 相关的第三方库
- 截图(如果适用)

- type: checkboxes
id: impact
attributes:
label: 影响程度 | Impact Level
description: 这个Bug对您的影响程度如何?
options:
- label: 阻塞性 - 完全无法使用库的核心功能
- label: 严重 - 影响主要功能,有临时解决方案
- label: 中等 - 影响部分功能,不影响主流程
- label: 轻微 - 小问题,不影响正常使用
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
blank_issues_enabled: false
contact_links:
- name: 📖 Documentation | 文档
url: https://11273.github.io/goofish-client/
about: Browse the complete documentation | 浏览完整文档

- name: 💬 GitHub Discussions | GitHub 讨论
url: https://github.com/11273/goofish-client/discussions
about: Ask questions and discuss with the community | 在社区中提问和讨论

- name: 🔒 Security Advisory | 安全咨询
url: https://github.com/11273/goofish-client/security/advisories
about: Report security vulnerabilities privately | 私密报告安全漏洞

- name: 📧 Contact Maintainer | 联系维护者
url: https://github.com/11273
about: Contact the project maintainer directly | 直接联系项目维护者

- name: ⭐ Star the Project | 为项目点星
url: https://github.com/11273/goofish-client
about: Show your support by starring the project | 通过点星表示支持
161 changes: 161 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
name: 📚 Documentation | 文档改进
description: Suggest improvements to documentation | 建议改进文档
title: "[Docs]: "
labels: ["documentation", "good first issue"]
assignees: []
body:
- type: markdown
attributes:
value: |
感谢您帮助改进文档!清晰的文档对项目非常重要。

Thank you for helping improve our documentation! Clear documentation is crucial for the project.

- type: checkboxes
id: prerequisites
attributes:
label: 前置条件 | Prerequisites
description: 在提交之前,请确认您已经检查了以下内容
options:
- label: 我已经搜索了现有的Issues,确认这个问题还没有被报告过
required: true
- label: 我已经浏览了现有的文档
required: true

- type: dropdown
id: doc-type
attributes:
label: 文档类型 | Documentation Type
description: 这是关于哪种类型的文档?
options:
- README.md
- API Reference (API参考)
- Getting Started Guide (入门指南)
- Examples (示例)
- Troubleshooting (故障排除)
- Contributing Guide (贡献指南)
- Code Comments (代码注释)
- TypeScript Types (类型定义)
- Other (其他)
validations:
required: true

- type: dropdown
id: issue-type
attributes:
label: 问题类型 | Issue Type
description: 这是什么类型的文档问题?
options:
- Missing Information (信息缺失)
- Incorrect Information (信息错误)
- Unclear Explanation (解释不清)
- Outdated Content (内容过时)
- Typo/Grammar (拼写/语法错误)
- Translation (翻译相关)
- Code Example Issues (代码示例问题)
- Structure/Organization (结构/组织问题)
- Other (其他)
validations:
required: true

- type: input
id: location
attributes:
label: 文档位置 | Documentation Location
description: 请指出具体的文件路径或URL
placeholder: "例如: docs/api/search.md 或 https://11273.github.io/goofish-client/api/search"
validations:
required: true

- type: textarea
id: current-content
attributes:
label: 当前内容 | Current Content
description: 请引用当前有问题的文档内容(如果适用)
placeholder: |
请粘贴当前的文档内容或描述当前的问题...

- type: textarea
id: description
attributes:
label: 问题描述 | Issue Description
description: 请详细描述文档中的问题
placeholder: |
例如:
- 缺少关于错误处理的说明
- 示例代码无法运行
- 参数说明不清楚
- 中文翻译有误
validations:
required: true

- type: textarea
id: suggested-improvement
attributes:
label: 改进建议 | Suggested Improvement
description: 您建议如何改进这部分文档?
placeholder: |
请提供具体的改进建议,如:
- 添加什么内容
- 如何重新组织
- 更好的解释方式
- 修正的代码示例
validations:
required: true

- type: textarea
id: proposed-content
attributes:
label: 建议内容 | Proposed Content
description: 如果可能,请提供建议的文档内容
render: markdown
placeholder: |
## 建议的新内容

请在这里写下您建议的文档内容...

- type: dropdown
id: user-type
attributes:
label: 用户类型 | User Type
description: 从什么角度提出这个建议?
options:
- Beginner (初学者)
- Intermediate User (中级用户)
- Advanced User (高级用户)
- Contributor (贡献者)
- Maintainer (维护者)

- type: checkboxes
id: affected-areas
attributes:
label: 影响范围 | Affected Areas
description: 这个改进可能影响哪些方面?
options:
- label: 用户体验 (User Experience)
- label: 开发效率 (Developer Productivity)
- label: 学习曲线 (Learning Curve)
- label: 项目采用 (Project Adoption)
- label: 错误减少 (Error Reduction)

- type: checkboxes
id: contribution
attributes:
label: 贡献意愿 | Contribution
description: 您是否愿意帮助改进文档?
options:
- label: 我愿意提交Pull Request来改进这部分文档
- label: 我可以帮助审核文档改进
- label: 我可以提供更多的例子和用例
- label: 我可以帮助翻译文档

- type: textarea
id: additional-context
attributes:
label: 其他信息 | Additional Context
description: 添加任何其他相关信息
placeholder: |
- 用户反馈
- 社区讨论
- 相关的Issues或Pull Requests
- 参考资料
Loading