chore: migrate lock threads to github actions (#11163)

Co-Authored-By: Armin Sebastian <hi@armin.dev>

Co-authored-by: Armin Sebastian <github@armin.dev>
This commit is contained in:
Huáng Jùnliàng 2020-02-22 05:18:52 -05:00 committed by GitHub
parent 2ce7008173
commit eaff9f837a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 12 deletions

12
.github/lock.yml vendored
View File

@ -1,12 +0,0 @@
# Configuration for lock-threads - https://github.com/dessant/lock-threads
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 91
# Comment to post before locking. Set to `false` to disable
lockComment: false
# The label to be applied when an issue is locked
lockLabel: 'outdated'
# Issues or pull requests with these labels will not be locked
# exemptLabels:
# - no-locking

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

@ -0,0 +1,17 @@
name: Lock Threads
on:
schedule:
- cron: '0 4 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '91'
issue-lock-labels: 'outdated'
pr-lock-inactive-days: '91'
pr-lock-labels: 'outdated'