From b981095bfaf1aba7e53f0ceadd3fba8becbd78b7 Mon Sep 17 00:00:00 2001 From: codeasier Date: Sat, 18 Apr 2026 20:24:18 +0800 Subject: [PATCH] fix: remove redundant .gitcode/ directory The .gitcode/ directory was a duplicate of .github/ containing redundant issue and PR templates. Fixes #39 --- .gitcode/ISSUE_TEMPLATE/bug_report.yaml | 90 ------------------- .gitcode/ISSUE_TEMPLATE/config.yaml | 38 -------- .gitcode/ISSUE_TEMPLATE/documentation.yaml | 64 ------------- .gitcode/ISSUE_TEMPLATE/feature_request.yaml | 62 ------------- .gitcode/ISSUE_TEMPLATE/question.yaml | 69 -------------- .../pull_request_template.yaml | 79 ---------------- 6 files changed, 402 deletions(-) delete mode 100644 .gitcode/ISSUE_TEMPLATE/bug_report.yaml delete mode 100644 .gitcode/ISSUE_TEMPLATE/config.yaml delete mode 100644 .gitcode/ISSUE_TEMPLATE/documentation.yaml delete mode 100644 .gitcode/ISSUE_TEMPLATE/feature_request.yaml delete mode 100644 .gitcode/ISSUE_TEMPLATE/question.yaml delete mode 100644 .gitcode/PULL_REQUEST_TEMPLATE/pull_request_template.yaml diff --git a/.gitcode/ISSUE_TEMPLATE/bug_report.yaml b/.gitcode/ISSUE_TEMPLATE/bug_report.yaml deleted file mode 100644 index 74d8d0d..0000000 --- a/.gitcode/ISSUE_TEMPLATE/bug_report.yaml +++ /dev/null @@ -1,90 +0,0 @@ -name: 🐛 Bug Report -description: 报告一个程序错误 -title: "[BUG] " -labels: ["bug"] -body: - - type: markdown - attributes: - value: | - 感谢报告问题!请填写以下表单。 - - - type: textarea - id: description - attributes: - label: Bug 描述 - description: 清晰简洁地描述 bug 是什么 - validations: - required: true - - - type: textarea - id: reproduction - attributes: - label: 复现步骤 - description: 复现该行为的步骤 - value: | - 1. - 2. - 3. - validations: - required: true - - - type: textarea - id: expected - attributes: - label: 预期行为 - description: 描述你期望发生什么 - validations: - required: true - - - type: textarea - id: actual - attributes: - label: 实际行为 - description: 描述实际发生了什么 - validations: - required: true - - - type: dropdown - id: os - attributes: - label: 操作系统 - options: - - Ubuntu - - macOS - - Windows - - Other - validations: - required: true - - - type: input - id: python_version - attributes: - label: Python 版本 - description: 如:3.10.12 - validations: - required: true - - - type: input - id: version - attributes: - label: pt-snap-cli 版本 - description: 如:0.1.0 - validations: - required: true - - - type: textarea - id: logs - attributes: - label: 日志/错误信息 - description: 请粘贴相关日志或错误输出 - render: shell - validations: - required: false - - - type: textarea - id: additional - attributes: - label: 补充信息 - description: 任何额外的上下文、截图等 - validations: - required: false diff --git a/.gitcode/ISSUE_TEMPLATE/config.yaml b/.gitcode/ISSUE_TEMPLATE/config.yaml deleted file mode 100644 index 3618f4d..0000000 --- a/.gitcode/ISSUE_TEMPLATE/config.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# GitCode Issue Templates Configuration -# 参考文档:https://docs.gitcode.com/ - -blank_issues_enabled: true - -contact_links: - - name: 📖 项目文档 - url: https://gitcode.com/codeasier/pt-snap-cli/tree/main/docs - about: 查看项目文档和使用指南 - - name: 💬 讨论区 - url: https://gitcode.com/codeasier/pt-snap-cli/discussions - about: 在讨论区提问或分享想法 - - name: 📧 联系我们 - url: mailto:825770651@qq.com - about: 通过邮件联系我们 - -# 模板排序(按此顺序显示在 Issue 选择页面) -issue_templates: - - bug_report.yaml - - feature_request.yaml - - documentation.yaml - - question.yaml - -# ============================================================ -# 标签与模板映射 -# ============================================================ -# 每个模板文件的 `labels` 字段定义了创建 Issue 时自动分配的标签 -# -# | 模板文件 | 自动标签 | 说明 | -# |--------------------|-------------------|----------------| -# | bug_report.yaml | bug | 错误报告 | -# | feature_request.yaml | enhancement | 功能请求 | -# | documentation.yaml | documentation | 文档问题 | -# | question.yaml | question | 问题咨询 | -# -# 如需添加更多标签,编辑对应模板文件的 `labels:` 字段 -# 示例:labels: ["bug", "critical", "help-wanted"] -# ============================================================ diff --git a/.gitcode/ISSUE_TEMPLATE/documentation.yaml b/.gitcode/ISSUE_TEMPLATE/documentation.yaml deleted file mode 100644 index 09f4978..0000000 --- a/.gitcode/ISSUE_TEMPLATE/documentation.yaml +++ /dev/null @@ -1,64 +0,0 @@ -name: 📚 Documentation -description: 报告文档问题或提出改进建议 -title: "[DOCS] " -labels: ["documentation"] -body: - - type: markdown - attributes: - value: | - 感谢帮助改进文档!请填写以下表单。 - - - type: checkboxes - id: issue_type - attributes: - label: 问题类型 - options: - - label: 文档内容错误或不准确 - - label: 文档缺失(缺少某些功能的说明) - - label: 文档结构/导航问题 - - label: 示例代码错误 - - label: 文档格式问题 - - label: 需要添加新的文档 - - label: 其他 - validations: - required: true - - - type: input - id: location - attributes: - label: 受影响的位置 - description: 请指明问题所在的文档页面或章节 - validations: - required: true - - - type: textarea - id: description - attributes: - label: 问题描述 - description: 详细描述文档的问题是什么 - validations: - required: true - - - type: textarea - id: suggestion - attributes: - label: 改进建议 - description: 你建议如何改进这部分文档 - validations: - required: true - - - type: textarea - id: expected - attributes: - label: 期望的内容 - description: 如果建议添加新内容,请描述应该包含什么 - validations: - required: false - - - type: textarea - id: additional - attributes: - label: 补充信息 - description: 参考文档、截图等 - validations: - required: false diff --git a/.gitcode/ISSUE_TEMPLATE/feature_request.yaml b/.gitcode/ISSUE_TEMPLATE/feature_request.yaml deleted file mode 100644 index adea5b9..0000000 --- a/.gitcode/ISSUE_TEMPLATE/feature_request.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: ✨ Feature Request -description: 提出新功能建议 -title: "[FEATURE] " -labels: ["enhancement"] -body: - - type: markdown - attributes: - value: | - 感谢提出建议!请填写以下表单。 - - - type: textarea - id: description - attributes: - label: 功能描述 - description: 清晰简洁地描述你希望添加的功能 - validations: - required: true - - - type: textarea - id: use_case - attributes: - label: 使用场景 - description: 描述这个功能会解决什么问题,或带来什么价值 - validations: - required: true - - - type: textarea - id: implementation - attributes: - label: 期望的实现方式 - description: 描述你希望这个功能如何工作 - validations: - required: false - - - type: textarea - id: examples - attributes: - label: 示例 - description: 如果适用,提供使用示例 - render: shell - validations: - required: false - - - type: textarea - id: references - attributes: - label: 参考资源 - description: 相关的参考资料、类似工具的实现等 - validations: - required: false - - - type: textarea - id: acceptance - attributes: - label: 验收标准 - description: 列出功能完成时需要满足的条件 - value: | - - [ ] - - [ ] - - [ ] - validations: - required: false diff --git a/.gitcode/ISSUE_TEMPLATE/question.yaml b/.gitcode/ISSUE_TEMPLATE/question.yaml deleted file mode 100644 index 293d502..0000000 --- a/.gitcode/ISSUE_TEMPLATE/question.yaml +++ /dev/null @@ -1,69 +0,0 @@ -name: ❓ Question -description: 提出一个问题 -title: "[QUESTION] " -labels: ["question"] -body: - - type: markdown - attributes: - value: | - 感谢提问!请填写以下表单。 - - - type: textarea - id: topic - attributes: - label: 问题主题 - description: 简要描述你的问题主题 - validations: - required: true - - - type: textarea - id: description - attributes: - label: 问题描述 - description: 详细描述你的问题 - validations: - required: true - - - type: checkboxes - id: tried - attributes: - label: 已尝试的解决方案 - options: - - label: 已阅读 README - - label: 已查看文档 - - label: 已搜索现有 Issues - validations: - required: false - - - type: input - id: os - attributes: - label: 操作系统 - description: 如适用,请填写 - validations: - required: false - - - type: input - id: version - attributes: - label: pt-snap-cli 版本 - description: 如适用,请填写 - validations: - required: false - - - type: textarea - id: code - attributes: - label: 相关代码或命令 - description: 如果问题与具体使用相关,请提供 - render: shell - validations: - required: false - - - type: textarea - id: additional - attributes: - label: 补充信息 - description: 任何有助于回答问题的信息 - validations: - required: false diff --git a/.gitcode/PULL_REQUEST_TEMPLATE/pull_request_template.yaml b/.gitcode/PULL_REQUEST_TEMPLATE/pull_request_template.yaml deleted file mode 100644 index 472620b..0000000 --- a/.gitcode/PULL_REQUEST_TEMPLATE/pull_request_template.yaml +++ /dev/null @@ -1,79 +0,0 @@ -name: 🔄 Pull Request -description: 提交代码变更请求 -title: "[PR] " -labels: ["bug", "enhancement", "documentation", "question"] -body: - - type: markdown - attributes: - value: | - 感谢提交 Pull Request!请填写以下表单。 - - - type: textarea - id: description - attributes: - label: 变更说明 - description: 清晰简洁地描述你的变更内容 - validations: - required: true - - - type: textarea - id: related_issues - attributes: - label: 关联 Issue - description: 关联的 Issue 编号,如 Fixes #123 - render: shell - validations: - required: false - - - type: checkboxes - id: pr_type - attributes: - label: 变更类型 - options: - - label: Bug fix (修复了一个非破坏性的 bug) - - label: New feature (添加了一个新功能) - - label: Breaking change (修复或功能变更会导致现有功能失效) - - label: Documentation update (文档更新) - - label: Refactoring (代码重构,无功能变更) - - label: Performance improvement (性能优化) - - label: Test improvement (测试改进) - - label: Other (其他) - validations: - required: true - - - type: textarea - id: test_plan - attributes: - label: 测试计划 - description: 描述你是如何测试这些变更的 - value: | - - [ ] 已添加自动化测试 - - [ ] 已手动测试 - - [ ] 测试步骤: - 1. - 2. - 3. - validations: - required: true - - - type: textarea - id: checklist - attributes: - label: 自检清单 - description: 确保你的 PR 满足以下条件 - value: | - - [ ] 代码遵循项目的代码规范 - - [ ] 已进行自我代码审查 - - [ ] 更新了相关文档 - - [ ] 没有引入新的警告 - - [ ] 如果有必要,已通知团队其他成员 - validations: - required: true - - - type: textarea - id: additional - attributes: - label: 补充信息 - description: 任何额外的上下文、截图等 - validations: - required: false