From b6ee1aa638d5acf61ad2a5edcd155c76fcbe0739 Mon Sep 17 00:00:00 2001 From: chainchad <96362174+chainchad@users.noreply.github.com> Date: Mon, 10 Feb 2025 11:54:00 -0500 Subject: [PATCH] Allow stale PR workflow to delete branches (#15219) --- .github/workflows/stale.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5972519426a..e10da5efe81 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -13,6 +13,7 @@ jobs: stale: runs-on: ubuntu-latest permissions: + contents: write # only for delete-branch option issues: write pull-requests: write @@ -23,5 +24,6 @@ jobs: exempt-all-pr-assignees: true stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days." days-before-issue-stale: -1 # disables marking issues as stale automatically. Issues can still be marked as stale manually, in which the closure policy applies. + delete-branch: true # Comma separated list of labels that exempt issues from being considered stale. exempt-pr-labels: "stale-exempt"