From df9ceac09dccf7ee1c7ab597b5ff2682369c438f Mon Sep 17 00:00:00 2001 From: Igor Danchenko <64441155+igordanchenko@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:47:48 -0400 Subject: [PATCH] chore: add lock workflow --- .github/workflows/lock.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..c7be9a7 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,23 @@ +name: Lock Closed Issues + +on: + schedule: + - cron: "17 9 * * 0" + +permissions: + issues: write + +jobs: + action: + runs-on: ubuntu-latest + + if: github.repository == 'igordanchenko/yet-another-react-lightbox' + + steps: + - uses: dessant/lock-threads@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-inactive-days: "90" + exclude-issue-created-after: "2022-07-01T00:00:00Z" + issue-lock-reason: "" + process-only: issues