From 508062f8dc72bcf88095520b777df692c2e50a3c Mon Sep 17 00:00:00 2001 From: lingcoder <34231795+LingCoder@users.noreply.github.com> Date: Wed, 14 Sep 2022 15:44:54 +0800 Subject: [PATCH] fix issue bot :ignore issue which without labels (#2077) Co-authored-by: John Guo --- .github/workflows/issue-check-inactive.yml | 6 +++--- .github/workflows/issue-close-inactive.yml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml index 36e3096b1..f4a91fc1f 100644 --- a/.github/workflows/issue-check-inactive.yml +++ b/.github/workflows/issue-check-inactive.yml @@ -1,9 +1,9 @@ -# 规则描述:每天0点(GMT+8)执行一次,将最近7天没有活跃且非BUG的ISSUE设置标签:inactive +# 规则描述:每天凌晨3点(GMT+8)执行一次,将最近7天没有活跃且非BUG的ISSUE设置标签:inactive name: Issue Check Inactive on: schedule: - - cron: "0 3 * * *" + - cron: "0 19 * * *" env: # 设置环境变量 TZ: Asia/Shanghai #时区(设置时区可使页面中的`最近更新时间`使用时区时间) @@ -25,4 +25,4 @@ jobs: inactive-label: 'inactive' inactive-day: 7 issue-state: open - exclude-labels: 'bug' \ No newline at end of file + exclude-labels: 'bug,$exclude-empty' \ No newline at end of file diff --git a/.github/workflows/issue-close-inactive.yml b/.github/workflows/issue-close-inactive.yml index 37e9b7391..784e9284a 100644 --- a/.github/workflows/issue-close-inactive.yml +++ b/.github/workflows/issue-close-inactive.yml @@ -1,9 +1,9 @@ -# 规则描述:每天0点(GMT+8)执行一次,将最近30天没有活跃且非BUG的ISSUE关闭 +# 规则描述:每天凌晨4点(GMT+8)执行一次,将最近30天没有活跃且非BUG的ISSUE关闭 name: Issue Close Inactive on: schedule: - - cron: "0 3 * * *" + - cron: "0 20 * * *" env: # 设置环境变量 TZ: Asia/Shanghai #时区(设置时区可使页面中的`最近更新时间`使用时区时间) @@ -19,4 +19,5 @@ jobs: # token: ${{ secrets.GF_TOKEN }} labels: 'inactive' inactive-day: 30 - exclude-labels: 'bug' \ No newline at end of file + exclude-labels: 'bug,$exclude-empty' + close-reason: 'not active' \ No newline at end of file