From c4dde47df537a16585ce4ee6a024ba99ec8460d0 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:36:52 +0100 Subject: [PATCH] feat(workflows): lock threads older than 120 days Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- .github/workflows/lock-threads.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 0000000000000..e8945d6368efe --- /dev/null +++ b/.github/workflows/lock-threads.yml @@ -0,0 +1,25 @@ +name: 'Lock Threads olders than 120 days' + +on: + schedule: + - cron: '17 3 * * 7' + 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: + issue-inactive-days: '120' + issue-comment: 'This issue has been inactive for 120 days, we're locking it to keep discussions tidy and focused. If this issue is still relevant, we encourage you to update Nextcloud to the latest supported version first. If needed, feel free to create a new issue, and we'll be happy to help.' + issue-lock-reason: 'resolved' + pr-inactive-days: '120' + pr-comment: 'This PR has been inactive for 120 days, we're locking it to keep discussions tidy and focused. If this PR is causing any issues, feel free to create a new issue, and we'll be happy to help.'