From 6818fdd00af224643ad6f1999f3aaaa6a894c297 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 14 May 2025 22:48:30 +0200 Subject: [PATCH] Add lock threads cron job --- .github/workflows/lock_threads.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lock_threads.yml diff --git a/.github/workflows/lock_threads.yml b/.github/workflows/lock_threads.yml new file mode 100644 index 00000000..de74fa5e --- /dev/null +++ b/.github/workflows/lock_threads.yml @@ -0,0 +1,35 @@ +name: LockThreads + +on: + schedule: + - cron: "50 * * * *" + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +concurrency: + group: lock-threads + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v5 + with: + github-token: ${{ github.token }} + issue-inactive-days: 120 + issue-comment: > + This issue has been automatically locked since there has not been + any recent activity after it was closed. Please open a new issue + for related bugs or feature requests. + issue-lock-reason: "Resolved" + pr-inactive-days: 120 + pr-comment: > + This pull request thread has been automatically locked since there + has not been any recent activity after it was closed. Please open + an issue for any related bugs or feature requests. + pr-lock-reason: "Completed" + process-only: "issues. prs" + log-output: false