fix issue bot :ignore issue which without labels (#2077)

Co-authored-by: John Guo <john@johng.cn>
This commit is contained in:
lingcoder
2022-09-14 15:44:54 +08:00
committed by GitHub
parent e5c63c7e16
commit 508062f8dc
2 changed files with 7 additions and 6 deletions

View File

@ -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'
exclude-labels: 'bug,$exclude-empty'

View File

@ -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'
exclude-labels: 'bug,$exclude-empty'
close-reason: 'not active'