From a5ce9a6ff5be828213c3375c2c8dce3067c47845 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Thu, 1 Jun 2023 14:43:01 +0200 Subject: [PATCH] ci: lock inactive closed issues --- .github/workflows/lock-closed-issues.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/lock-closed-issues.yml diff --git a/.github/workflows/lock-closed-issues.yml b/.github/workflows/lock-closed-issues.yml new file mode 100644 index 000000000..4524154ec --- /dev/null +++ b/.github/workflows/lock-closed-issues.yml @@ -0,0 +1,24 @@ +name: Lock Closed Issues + +on: + schedule: + - cron: "0 0 * * *" + +permissions: + issues: write + +jobs: + action: + if: github.repository == 'vitest-dev/vitest' + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-inactive-days: "14" + #issue-comment: | + # This issue has been locked since it has been closed for more than 14 days. + # + # If you have found a concrete bug or regression related to it, please open a new [bug report](https://github.com/vitejs/vite/issues/new/choose) with a reproduction against the latest Vite version. If you have any other comments you should join the chat at [Vite Land](https://chat.vitejs.dev) or create a new [discussion](https://github.com/vitejs/vite/discussions). + issue-lock-reason: "" + process-only: "issues" -- 2.51.2