github.com/wangyougui/gf/v2@v2.6.5/.github/workflows/issue-check-inactive.yml (about)

     1  # 规则描述:每天凌晨3点(GMT+8)执行一次,将最近7天没有活跃且非BUG的ISSUE设置标签:inactive
     2  name: Issue Check Inactive
     3  
     4  on:
     5    schedule:
     6      - cron: "0 19 * * *"
     7  
     8  env: # 设置环境变量
     9    TZ: Asia/Shanghai #时区(设置时区可使页面中的`最近更新时间`使用时区时间)
    10  
    11  permissions:
    12    contents: read
    13  
    14  jobs:
    15    issue-check-inactive:
    16      permissions:
    17        issues: write # for actions-cool/issues-helper to update issues
    18       # pull-requests: write # for actions-cool/issues-helper to update PRs
    19      runs-on: ubuntu-latest
    20      steps:
    21        - name: check-inactive
    22          uses: actions-cool/issues-helper@v3
    23          with:
    24            actions: 'check-inactive'
    25            inactive-label: 'inactive'
    26            inactive-day: 7
    27            issue-state: open
    28            exclude-labels: 'bug,planned,$exclude-empty'