From bd1a3c7528de1802295df0d3a361cdb8687eafe2 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Mon, 6 Jan 2025 09:16:21 +0100 Subject: [PATCH] ci: Automatically lock issues and PRs older than a year --- .github/workflows/stale.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 7f4d119bb4..35ddbf3aa1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,6 +9,10 @@ on: schedule: - cron: '0 0 * * *' +permissions: + issues: write + pull-requests: write + jobs: stale: runs-on: ubuntu-latest @@ -26,3 +30,8 @@ jobs: exempt-issue-labels: enhancement exempt-pr-labels: keep-open operations-per-run: 1000 + - name: Lock closed issues and PRs (defaults to 365 days) + uses: dessant/lock-threads@v5.0.1 + with: + process-only: 'issues, prs' # Ignore Discussions +