ci-workflows/.forgejo/workflows/stale-cleanup.yml
feibisi 9d227a5db0
All checks were successful
Go 项目 CI / ci (push) Has been skipped
gitleaks 密钥泄露扫描 / gitleaks (push) Successful in -8h1m15s
TypeScript/JS 项目 CI / ci (push) Has been skipped
WordPress 插件 CI / ci (push) Has been skipped
refactor: stale-cleanup 改为独立 Python 脚本
- 避免 shell+Python 混合的转义问题
- 纯 Python 实现,urllib 无额外依赖
- 支持 --dry-run 模式
- 自动创建 stale 标签
2026-02-19 01:09:48 +08:00

17 lines
384 B
YAML

name: Stale Issue/PR 清理
on:
schedule:
- cron: '0 5 * * 1' # 每周一凌晨 5 点
workflow_dispatch:
jobs:
stale-cleanup:
runs-on: linux-arm64
steps:
- uses: actions/checkout@v4
- name: 清理所有原创仓库的过期 Issue 和 PR
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: python3 scripts/stale-cleanup.py