mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-03 06:24:20 +08:00
🔥 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:
1469
.github/workflows/ai-issue-smart-reply.yml
vendored
1469
.github/workflows/ai-issue-smart-reply.yml
vendored
File diff suppressed because it is too large
Load Diff
30
.github/workflows/nomore-spam.yml
vendored
Normal file
30
.github/workflows/nomore-spam.yml
vendored
Normal 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 }} # 可选:黑名单用户列表
|
||||
Reference in New Issue
Block a user