From cac2051a9c389e14e01fd0dfeea37db92448dbc2 Mon Sep 17 00:00:00 2001 From: Suneha Bose Date: Thu, 22 Oct 2026 00:29:56 -0700 Subject: [PATCH] fix: enable stale cleanup after 74 inactive days --- .github/workflows/defaultLabels.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/defaultLabels.yml b/.github/workflows/defaultLabels.yml index 66a4ef6d..76347ead 100644 --- a/.github/workflows/defaultLabels.yml +++ b/.github/workflows/defaultLabels.yml @@ -10,26 +10,24 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write # Steps represent a sequence of tasks that will be executed as part of the job steps: - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 #v11.0.0 - name: Setting issue as idle + name: Mark idle issues and PRs and close inactive ones with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' + stale-issue-message: 'This issue is idle after 60 days with no activity. It will be closed in 14 days if there is no further activity.' stale-issue-label: 'idle' - days-before-stale: 14 - days-before-close: -1 - operations-per-run: 100 - exempt-issue-labels: 'backlog' - - - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 #v11.0.0 - name: Setting PR as idle - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' + close-issue-message: 'Closing this issue after 14 more days with no activity since it was marked idle.' + stale-pr-message: 'This PR is idle after 60 days with no activity. It will be closed in 14 days if there is no further activity.' stale-pr-label: 'idle' - days-before-stale: 14 - days-before-close: -1 + close-pr-message: 'Closing this PR after 14 more days with no activity since it was marked idle.' + days-before-stale: 60 + days-before-close: 14 + remove-stale-when-updated: true operations-per-run: 100 + exempt-issue-labels: 'backlog'