Skip to content

The only downloader you need. 下载器的集大成者。

feat(github): 限制在 Issue 中使用 AI 代写与分析

XiaoYouChRb6bc7ef49f7c
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 3256b53a..38956203 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -4,6 +4,11 @@ title: "[Bug] "
labels:
- "🐛Bug"
body:
+- type: markdown
+ attributes:
+ value: |
+ 请用自己的话写清现象、复现步骤和原始日志,**不要用 AI 代写 Issue,也不要贴 AI 根因分析或修复建议**,仅允许纯翻译。包含 AI 代写或分析的 Issue 可能会被直接关闭。
+
- type: checkboxes
id: no-duplicate
attributes:
@@ -11,12 +16,14 @@ body:
options:
- label: 我已搜索现有 Issue,确认没有重复
required: true
+ - label: 本 Issue 未使用 AI 代写,也不包含 AI 根因分析或修复建议
+ required: true
- type: textarea
id: description
attributes:
label: 描述
- description: 简述你遇到的问题
+ description: 简述你做了什么、看到了什么现象,不要贴代码分析或修复建议
validations:
required: true
@@ -104,4 +111,5 @@ body:
id: additional-context
attributes:
label: 备注
+ description: 其他有助于复现的信息,不要贴 AI 分析
render: markdown
diff --git a/.github/ISSUE_TEMPLATE/bug_report_en.yml b/.github/ISSUE_TEMPLATE/bug_report_en.yml
index f8c5f627..32ecfa15 100644
--- a/.github/ISSUE_TEMPLATE/bug_report_en.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report_en.yml
@@ -4,6 +4,11 @@ title: "[Bug] "
labels:
- "🐛Bug"
body:
+- type: markdown
+ attributes:
+ value: |
+ Describe what happened in your own words with steps and raw logs. **Do not use AI to write this issue or paste AI root cause analyses or fix suggestions**; direct translation only. Violating issues may be closed directly.
+
- type: checkboxes
id: no-duplicate
attributes:
@@ -11,12 +16,14 @@ body:
options:
- label: I have searched existing issues and confirmed this is not a duplicate
required: true
+ - label: This issue is written by me without AI-generated text, analysis, or fix suggestions
+ required: true
- type: textarea
id: description
attributes:
label: Description
- description: Briefly describe the problem
+ description: What you did and what happened, no code analysis or fix suggestions
validations:
required: true
@@ -104,4 +111,5 @@ body:
id: additional-context
attributes:
label: Additional context
+ description: Other factual context for reproduction, no AI analysis
render: markdown
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
index 5cc483fb..9eefbece 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.yml
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -4,6 +4,11 @@ title: "[Feature] "
labels:
- "✨Enhancement"
body:
+- type: markdown
+ attributes:
+ value: |
+ 请用自己的话说明使用场景和痛点,**不要用 AI 代写需求文档或技术方案**,仅允许纯翻译。包含 AI 代写或方案的 Issue 可能会被直接关闭。
+
- type: checkboxes
id: no-duplicate
attributes:
@@ -11,6 +16,8 @@ body:
options:
- label: 我已搜索现有 Issue 和 Discussions,确认没有重复
required: true
+ - label: 本 Issue 未使用 AI 代写,也不包含 AI 生成的技术方案
+ required: true
- type: textarea
id: problem-description
@@ -24,9 +31,7 @@ body:
id: solution-description
attributes:
label: 期望方案
- description: 你期望的解决方式是什么?
- validations:
- required: true
+ description: 从使用体验描述期望的交互或效果,无需写技术方案
- type: textarea
id: alternatives
diff --git a/.github/ISSUE_TEMPLATE/feature_request_en.yml b/.github/ISSUE_TEMPLATE/feature_request_en.yml
index 261740da..c0e1adf6 100644
--- a/.github/ISSUE_TEMPLATE/feature_request_en.yml
+++ b/.github/ISSUE_TEMPLATE/feature_request_en.yml
@@ -4,6 +4,11 @@ title: "[Feature] "
labels:
- "✨Enhancement"
body:
+- type: markdown
+ attributes:
+ value: |
+ Explain your use case and pain points in your own words. **Do not use AI to write feature specs or technical proposals**; direct translation only. Violating issues may be closed directly.
+
- type: checkboxes
id: no-duplicate
attributes:
@@ -11,6 +16,8 @@ body:
options:
- label: I have searched existing issues and Discussions to confirm this is not a duplicate
required: true
+ - label: This issue is written by me without AI-generated specs or technical proposals
+ required: true
- type: textarea
id: problem-description
@@ -24,9 +31,7 @@ body:
id: solution-description
attributes:
label: Proposed solution
- description: How do you expect this to work?
- validations:
- required: true
+ description: Expected UX or behavior, no technical implementation needed
- type: textarea
id: alternatives
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 884a91a3..b1caaa6f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -2,18 +2,16 @@
## AI 工具使用政策
-Ghost Downloader 欢迎使用 AI 工具辅助开发,但请在提交 PR 时如实声明。
+### Pull Request
-### 为什么?
-
-声明 AI 的参与程度,有助于维护者在 review 时有针对性地关注相关部分。
+PR 中使用了 AI 工具时,请在 PR 模板的 "AI 工具使用" 中如实声明:
-### 怎么声明?
+- **辅助开发**:代码补全、查用法、辅助调试等,勾选即可。
+- **主要生成**:生成了大量代码或核心逻辑,需注明工具和模型,如 `Cursor + Claude Sonnet 4`,不确定写"模型未知"。
-在 PR 模板的 "AI 工具使用" 部分勾选适用的选项:
+### Issue
-- **辅助开发** — AI 用于代码补全、查阅 API 用法、辅助调试等。勾选即可,无需额外说明。
-- **主要生成** — AI 生成了 PR 中的大量代码或核心逻辑。请注明使用的工具和模型(如 `Cursor + Claude Sonnet 4`)。不确定模型的话写"模型未知"即可。
+不要用 AI 代写 Issue,也不要粘贴 AI 根因分析、源码解读、修复建议或技术方案,非中英文母语者仅限纯翻译。Bug 报告只需提供现象、复现步骤、链接和原始日志;功能需求只需说明场景和痛点。违反者可能被直接关闭。
## 贡献者许可协议(CLA)
@@ -41,18 +39,16 @@ uv run Ghost-Downloader-3.py ghd --help
## AI Tool Usage Policy
-Ghost Downloader welcomes the use of AI tools in development, but please disclose AI usage when submitting a PR.
-
-### Why?
+### Pull Requests
-Disclosing AI involvement helps maintainers focus their review on the parts that need closer attention.
+If AI tools were used in a PR, disclose it in the "AI Tool Usage" section of the PR template:
-### How to disclose?
+- **Assisted development** — code completion, API lookups, debugging, etc. Just check the box.
+- **Primarily generated** — significant code or core logic generated by AI. Specify the tool and model, e.g. `Cursor + Claude Sonnet 4`, or "model unknown".
-Check the applicable option in the "AI Tool Usage" section of the PR template:
+### Issues
-- **Assisted development** — AI was used for code completion, looking up API usage, debugging assistance, etc. Just check the box, no further explanation needed.
-- **Primarily generated** — AI generated a significant portion of the code or core logic in the PR. Please specify the tool and model (e.g. `Cursor + Claude Sonnet 4`). If you're unsure about the model, just write "model unknown".
+Do not use AI to write issues or paste AI root cause analyses, code explanations, fix suggestions, or technical proposals; non-native Chinese/English speakers may use direct translation only. Bug reports only need observed behavior, steps, source URL, and raw logs; feature requests only need your use case and pain points. Violating issues may be closed directly.
## Contributor License Agreement (CLA)