ci-workflows/.forgejo/workflows/auto-label.yml
feibisi adef8e6ac2
All checks were successful
Go 项目 CI / ci (push) Has been skipped
gitleaks 密钥泄露扫描 / gitleaks (push) Successful in -8h1m14s
TypeScript/JS 项目 CI / ci (push) Has been skipped
WordPress 插件 CI / ci (push) Has been skipped
refactor: auto-label 改为集中式 Python 脚本
- 遍历所有原创仓库的 open PR
- 根据文件类型和 PR 大小自动打标签
- 自动创建缺失的标签(带颜色)
- 跳过已有标签的 PR
2026-02-19 01:16:05 +08:00

17 lines
369 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Auto Label
on:
schedule:
- cron: '30 5 * * 1' # 每周一凌晨 5:30stale-cleanup 之后)
workflow_dispatch:
jobs:
auto-label:
runs-on: linux-arm64
steps:
- uses: actions/checkout@v4
- name: 自动给 PR 打标签
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: python3 scripts/auto-label.py