workflows: lock closed threads after 90 days (#6843)

This commit is contained in:
Joe Chen 2022-03-15 21:30:13 +08:00 committed by GitHub
parent 714383a063
commit d392bc6e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/lock.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: 'Lock Threads'
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
with:
github-token: ${{ github.token }}
issue-inactive-days: '90'
issue-lock-reason: 'resolved'
pr-inactive-days: '365'
pr-lock-reason: 'resolved'