🔥 remove: 移除 AI Issue 自动回复工作流并新增垃圾信息检测工作流

- 删除 `.github/workflows/ai-issue-smart-reply.yml`,该文件包含约 1469 行的复杂 AI 分诊逻辑
- 新增 `.github/workflows/nomore-spam.yml`,在 issue 打开和 PR 打开时自动检测并关闭垃圾信息
- 新工作流支持通过仓库 secrets 配置自定义 AI 端点、API 密钥和模型名称
- 新工作流启用文件变更分析,可设置分析深度、标签白名单和用户黑名单
This commit is contained in:
Abner
2026-08-10 21:03:21 +08:00
parent 093310d25e
commit 7b4617f7ab
2 changed files with 30 additions and 1469 deletions

File diff suppressed because it is too large Load Diff

30
.github/workflows/nomore-spam.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: NoMore Spam
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
permissions:
contents: read
issues: write
pull-requests: write
models: read
jobs:
spam-detection:
runs-on: ubuntu-latest
steps:
- name: Detect and close spam
uses: JohnsonRan/nomore-spam@main
with:
github-token: ${{ github.token }}
ai-base-url: ${{ secrets.AI_BASE_URL }} # 可选自定义API端点去除 /chat/completions
ai-api-key: ${{ secrets.AI_API_KEY }} # 可选自定义API密钥
ai-model: ${{ secrets.AI_MODEL }} # 可选:自定义模型名称
labels: 'bug,enhancement,question'
analyze-file-changes: 'true'
max-analysis-depth: 'normal'
blacklist: ${{ secrets.BLACKLIST }} # 可选:黑名单用户列表