From aed241fdc4e15884342ac6eba618031e1ba0b3a2 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 29 Jan 2026 13:52:22 +0100 Subject: [PATCH] fix(workflow): use dessant/lock-threads for issue locking --- .github/workflows/lock-issue.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lock-issue.yaml b/.github/workflows/lock-issue.yaml index f93d3d4c4..e1542830c 100644 --- a/.github/workflows/lock-issue.yaml +++ b/.github/workflows/lock-issue.yaml @@ -1,15 +1,22 @@ name: Lock closed issues on: - issues: - types: [closed] + schedule: + - cron: "0 */6 * * *" # Run every 6 hours + workflow_dispatch: + +permissions: + issues: write jobs: lock: - permissions: - issues: write runs-on: ubuntu-latest steps: - - uses: peter-evans/lock-issues@v3 + - uses: dessant/lock-threads@v6 with: - issue-number: ${{ github.event.issue.number }} + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-inactive-days: 1 + issue-lock-reason: "resolved" + issue-comment: | + This issue has been automatically locked since it has been closed for more than 1 day. + If you have a related issue, please open a new one and reference this issue if needed.