github.com/gogf/gf/v2@v2.7.4/.github/workflows/issue-close-inactive.yml (about)

     1  # 规则描述:每天凌晨 4 点 (GMT+8) 执行一次,将最近 30 天没有活跃且非 BUG 的 ISSUE 关闭
     2  name: Issue Close Inactive
     3  
     4  on:
     5    schedule:
     6      - cron: "0 20 * * *"
     7  
     8  env: # 设置环境变量
     9    TZ: Asia/Shanghai #时区(设置时区可使页面中的`最近更新时间`使用时区时间)
    10  
    11  jobs:
    12    close-issues:
    13      runs-on: ubuntu-latest
    14      steps:
    15        - name: need close
    16          uses: actions-cool/issues-helper@v3
    17          with:
    18            actions: "close-issues"
    19  #          token: ${{ secrets.GF_TOKEN }}
    20            labels: 'inactive'
    21            inactive-day: 30
    22            exclude-labels: 'bug,$exclude-empty'
    23            close-reason: 'not active'