2024-06-16 11:17:34 +00:00
|
|
|
|
# 每天零点运行一次,它会检查所有带有 "need reproduction" 标签的 Issues。如果这些 Issues 在过去的 3 天内没有任何活动,它们将会被自动关闭。这有助于保持 Issue 列表的整洁,并且提醒用户在必要时提供更多的信息。
|
2024-05-19 13:20:42 +00:00
|
|
|
|
name: Issue Close Require
|
|
|
|
|
|
2024-06-16 11:17:34 +00:00
|
|
|
|
# 触发条件:每天零点
|
2024-05-19 13:20:42 +00:00
|
|
|
|
on:
|
|
|
|
|
schedule:
|
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
|
2024-08-06 14:37:47 +00:00
|
|
|
|
permissions:
|
|
|
|
|
pull-requests: write
|
|
|
|
|
contents: write
|
|
|
|
|
|
2024-05-19 13:20:42 +00:00
|
|
|
|
jobs:
|
|
|
|
|
close-issues:
|
|
|
|
|
runs-on: ubuntu-latest
|
2024-06-16 11:17:34 +00:00
|
|
|
|
|
2024-05-19 13:20:42 +00:00
|
|
|
|
steps:
|
2024-06-16 11:17:34 +00:00
|
|
|
|
# 步骤1:关闭未活动的 Issues
|
|
|
|
|
- name: Close Inactive Issues
|
|
|
|
|
uses: actions-cool/issues-helper@v3
|
2024-05-19 13:20:42 +00:00
|
|
|
|
with:
|
2024-06-16 11:17:34 +00:00
|
|
|
|
actions: "close-issues" # 执行动作:关闭 Issues
|
2024-08-06 14:37:47 +00:00
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }} # GitHub Token,用于认证
|
2024-08-20 14:38:10 +00:00
|
|
|
|
labels: "needs reproduction" # 目标标签
|
2024-06-16 11:17:34 +00:00
|
|
|
|
inactive-day: 3 # 未活动天数阈值
|