diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 9e005246746c..000000000000 --- a/.github/lock.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000000..e68792313c89 --- /dev/null +++ b/.github/workflows/lock.yml @@ -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'