From 42415bc9752f43477c36a673d17ebe3429c8d12f Mon Sep 17 00:00:00 2001 From: Nicolae Dicu Date: Wed, 28 May 2025 14:03:27 +0200 Subject: [PATCH] infra: Fix auto-close PR limit And added permissions to create labels. Signed-off-by: Nicolae Dicu --- .github/workflows/docs-cleanup.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-cleanup.yml b/.github/workflows/docs-cleanup.yml index e6b297593e..b9326b89e1 100644 --- a/.github/workflows/docs-cleanup.yml +++ b/.github/workflows/docs-cleanup.yml @@ -25,6 +25,7 @@ jobs: pages: write contents: write pull-requests: write + issues: write # Allow label creation steps: - name: Close abandoned PRs uses: actions/stale@v9 @@ -48,7 +49,8 @@ jobs: stale-pr-message: > This PR is stale because it has been open for 30 days with no activity. It will be closed in 10 days if no further activity occurs. #magic___^_^___line # Label the PR as autoclosed - close-pr-label: autoclose + close-pr-label: autoclosed + operations-per-run: 90 # Increase the number of operations per run # Add comment to the PR when it is closed close-pr-message: "Auto-closing: no activity for 30 days. If this is still relevant, reopen or create a fresh PR."