Skip to content

Close inactive issues #620

Close inactive issues

Close inactive issues #620

name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
name: Close inactive issues
runs-on: ubuntu-latest
if: github.repository == 'aaa1115910/bv'
permissions:
issues: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 60
days-before-issue-close: 14
days-before-pr-stale: -1
stale-issue-label: "过时"
stale-issue-message: "该 issue 已过时,因为它已经超过 60 天没有任何活动"
close-issue-message: "该 issue 已关闭,因为它在被标记为过时后 14 天依旧没有任何活动"
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: "bug,新功能,优化,有待讨论,疑难杂症"