github.com/wangyougui/gf/v2@v2.6.5/.github/workflows/issue-remove-inactive.yml (about) 1 # 规则描述:在 issue 没有活跃且尚未被关闭期间,若 issue 作者更新或评论该 ISSUE,则移除其 inactive 标签 2 name: Issue Remove Inactive 3 4 on: 5 issues: 6 types: [edited] 7 issue_comment: 8 types: [created, edited] 9 10 env: # 设置环境变量 11 TZ: Asia/Shanghai #时区(设置时区可使页面中的`最近更新时间`使用时区时间) 12 13 permissions: 14 contents: read 15 16 jobs: 17 issue-remove-inactive: 18 permissions: 19 issues: write # for actions-cool/issues-helper to update issues 20 # pull-requests: write # for actions-cool/issues-helper to update PRs 21 runs-on: ubuntu-latest 22 steps: 23 - name: remove inactive 24 if: github.event.issue.state == 'open' 25 uses: actions-cool/issues-helper@v3 26 with: 27 actions: 'remove-labels' 28 issue-number: ${{ github.event.issue.number }} 29 labels: 'inactive'