From 4ade634b618353df2f94385e945e33aa7e89b4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 21 Feb 2020 11:49:00 -0500 Subject: [PATCH] chore: migrate lock threads to github actions Co-Authored-By: Armin Sebastian --- .github/lock.yml | 12 ------------ .github/workflows/lock.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 .github/lock.yml create mode 100644 .github/workflows/lock.yml 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'