From 8a93daf60c598f8a776438b14c2f9e58248be123 Mon Sep 17 00:00:00 2001 From: tb1337 Date: Fri, 9 Feb 2024 16:36:38 +0000 Subject: [PATCH] Add issue and pr auto-locking --- .github/workflows/lock.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000..fba0d22 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,20 @@ +--- +name: Lock + +on: + schedule: + - cron: "0 5 * * *" + workflow_dispatch: + +jobs: + lock: + name: 🔒 Lock closed issues and PRs + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v5.0.1 + with: + github-token: ${{ github.token }} + issue-inactive-days: "30" + issue-lock-reason: "" + pr-inactive-days: "1" + pr-lock-reason: ""