diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..1c009c2ae --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,97 @@ +name: "Bug Report / Bug 报告" +description: | + Report errors or unexpected behavior. + 报告错误或异常行为。 +labels: + - bug +body: + - type: checkboxes + attributes: + label: Self Checks / 自检 + options: + - label: | + I have read the [FAQ](https://github.com/farion1231/cc-switch#faq) section in README. + 我已阅读 README 中的[常见问题](https://github.com/farion1231/cc-switch#常见问题)。 + required: true + - label: | + I have searched for [existing issues](https://github.com/farion1231/cc-switch/issues), including closed ones. + 我已搜索过[已有的 Issue](https://github.com/farion1231/cc-switch/issues),包括已关闭的。 + required: true + + - type: input + attributes: + label: CC Switch Version / 版本号 + description: | + See the Settings page in the app. + 查看应用设置页面中的版本号。 + placeholder: "e.g. 3.11.1" + validations: + required: true + + - type: dropdown + attributes: + label: Operating System / 操作系统 + multiple: false + options: + - Windows + - macOS + - Linux + validations: + required: true + + - type: dropdown + attributes: + label: Related App / 涉及应用 + description: | + Which app is affected? + 涉及哪个应用? + multiple: true + options: + - Claude Code + - Codex + - Gemini CLI + - OpenCode + - OpenClaw + - Other / 其他 + validations: + required: true + + - type: textarea + attributes: + label: Steps to Reproduce / 重现步骤 + description: | + Please describe the steps to reproduce the bug. Screenshots and logs are helpful. + 请描述重现步骤。截图和日志会很有帮助。 + placeholder: | + 1. Go to ... + 2. Click on ... + 3. See error ... + validations: + required: true + + - type: textarea + attributes: + label: Expected Behavior / 期望行为 + description: | + What did you expect to happen? + 你期望发生什么? + validations: + required: true + + - type: textarea + attributes: + label: Actual Behavior / 实际行为 + description: | + What actually happened? + 实际发生了什么? + validations: + required: false + + - type: textarea + attributes: + label: Additional Context / 补充信息 + description: | + Any other information, screenshots, or logs. + 其他信息、截图或日志。 + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..da493e1af --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,12 @@ +blank_issues_enabled: false +contact_links: + - name: "Security Vulnerabilities / 安全漏洞" + url: "https://github.com/farion1231/cc-switch/security/advisories/new" + about: | + Report security vulnerabilities through GitHub Security Advisories. + 请通过 GitHub 安全公告报告安全漏洞。 + - name: "Discussions / 讨论区" + url: "https://github.com/farion1231/cc-switch/discussions" + about: | + General discussions and community help. + 一般讨论和社区帮助。 diff --git a/.github/ISSUE_TEMPLATE/doc_issue.yml b/.github/ISSUE_TEMPLATE/doc_issue.yml new file mode 100644 index 000000000..941fb6ce3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/doc_issue.yml @@ -0,0 +1,60 @@ +name: "Documentation Issue / 文档问题" +description: | + Report documentation errors, outdated content, or missing information. + 报告文档错误、过时内容或缺失信息。 +labels: + - documentation +body: + - type: checkboxes + attributes: + label: Self Checks / 自检 + options: + - label: | + I have searched for [existing issues](https://github.com/farion1231/cc-switch/issues), including closed ones. + 我已搜索过[已有的 Issue](https://github.com/farion1231/cc-switch/issues),包括已关闭的。 + required: true + + - type: dropdown + attributes: + label: Language / 语言 + description: | + Which language version of the docs? + 涉及哪个语言版本的文档? + multiple: true + options: + - English + - 中文 + - 日本語 + validations: + required: true + + - type: input + attributes: + label: Document Location / 文档位置 + description: | + Which file or section is affected? Provide a link or file path. + 涉及哪个文件或章节?请提供链接或文件路径。 + placeholder: "e.g. README.md#faq or docs/user-manual/zh/..." + validations: + required: true + + - type: dropdown + attributes: + label: Issue Type / 问题类型 + options: + - "Typo or grammar / 拼写或语法错误" + - "Outdated content / 内容过时" + - "Missing information / 信息缺失" + - "Translation issue / 翻译问题" + - "Other / 其他" + validations: + required: true + + - type: textarea + attributes: + label: Description / 描述 + description: | + Describe the documentation issue. + 描述文档问题。 + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 000000000..9ea82ea7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,75 @@ +name: "Feature Request / 功能请求" +description: | + Propose a new feature or improvement. + 提出新功能或改进建议。 +labels: + - enhancement +body: + - type: checkboxes + attributes: + label: Self Checks / 自检 + options: + - label: | + I have read the [FAQ](https://github.com/farion1231/cc-switch#faq) section in README. + 我已阅读 README 中的[常见问题](https://github.com/farion1231/cc-switch#常见问题)。 + required: true + - label: | + I have searched for [existing issues](https://github.com/farion1231/cc-switch/issues), including closed ones. + 我已搜索过[已有的 Issue](https://github.com/farion1231/cc-switch/issues),包括已关闭的。 + required: true + + - type: dropdown + attributes: + label: Related App / 涉及应用 + description: | + Which app is this feature for? + 该功能涉及哪个应用? + multiple: true + options: + - Claude Code + - Codex + - Gemini CLI + - OpenCode + - OpenClaw + - General / 通用 + validations: + required: true + + - type: textarea + attributes: + label: Problem or Motivation / 问题或动机 + description: | + Is this request related to a problem? Describe the scenario. + 这个请求是否与某个问题相关?请描述使用场景。 + placeholder: | + I was trying to ... and found that ... + 我在尝试……的时候,发现…… + validations: + required: true + + - type: textarea + attributes: + label: Proposed Solution / 建议方案 + description: | + Describe the solution you'd like. + 描述你希望的解决方案。 + validations: + required: false + + - type: textarea + attributes: + label: Additional Context / 补充信息 + description: | + Any other context, mockups, or screenshots. + 其他背景信息、设计稿或截图。 + validations: + required: false + + - type: checkboxes + attributes: + label: Contribution / 参与贡献 + options: + - label: | + I am interested in contributing to this feature. + 我有兴趣参与开发此功能。 + required: false diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml new file mode 100644 index 000000000..6105087c3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,64 @@ +name: "Question / 提问" +description: | + Ask a question about usage or configuration. + 询问使用或配置相关问题。 +labels: + - question +body: + - type: checkboxes + attributes: + label: Self Checks / 自检 + options: + - label: | + I have read the [FAQ](https://github.com/farion1231/cc-switch#faq) section in README. + 我已阅读 README 中的[常见问题](https://github.com/farion1231/cc-switch#常见问题)。 + required: true + - label: | + I have searched for [existing issues](https://github.com/farion1231/cc-switch/issues), including closed ones. + 我已搜索过[已有的 Issue](https://github.com/farion1231/cc-switch/issues),包括已关闭的。 + required: true + + - type: dropdown + attributes: + label: Related App / 涉及应用 + description: | + Which app is your question about? + 你的问题涉及哪个应用? + multiple: true + options: + - Claude Code + - Codex + - Gemini CLI + - OpenCode + - OpenClaw + - General / 通用 + validations: + required: true + + - type: textarea + attributes: + label: Your Question / 你的问题 + description: | + Describe your question clearly. + 请清晰地描述你的问题。 + validations: + required: true + + - type: textarea + attributes: + label: What Have You Tried / 你已经尝试过什么 + description: | + Describe what you've already tried or researched. + 描述你已经尝试过或查阅过的内容。 + validations: + required: false + + - type: textarea + attributes: + label: Environment / 环境信息 + description: | + OS, CC Switch version, and any relevant details. + 操作系统、CC Switch 版本及其他相关信息。 + placeholder: "e.g. macOS 15.4, CC Switch 3.11.1" + validations: + required: false diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..95a763f7b --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,25 @@ +## Summary / 概述 + + + +## Related Issue / 关联 Issue + + + + +Fixes # + +## Screenshots / 截图 + + + +| Before / 修改前 | After / 修改后 | +|-----------------|---------------| +| | | + +## Checklist / 检查清单 + +- [ ] `pnpm typecheck` passes / 通过 TypeScript 类型检查 +- [ ] `pnpm format:check` passes / 通过代码格式检查 +- [ ] `cargo clippy` passes (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码) +- [ ] Updated i18n files if user-facing text changed / 如修改了用户可见文本,已更新国际化文件