ci: close issue that inactive more than 60 days [skip ci]

This commit is contained in:
Noah Hsu
2022-09-10 16:09:43 +08:00
parent 849124f177
commit 7249f277b2
3 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,20 @@
name: Close inactive
on:
schedule:
- cron: "0 0 */7 * *"
jobs:
close-inactive:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
labels: 'inactive'
inactive-day: 30
close-reason: 'not_planned'
body: |
Hello @${{ github.event.issue.user.login }}, this issue was closed due to inactive more than 60 days. You can reopen or recreate it if you think it should continue.