From 2be4a52e1a11804daedc9cdda249188ae342261a Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 26 Feb 2026 22:44:47 +0800 Subject: [PATCH] ci: extend stale workflow to cover PRs and improve clarity - Add PR stale/close handling alongside issues - Reduce close grace period from 7 to 3 days - Add inline comments explaining the two-phase stale behavior - Rename workflow and job names for clarity --- .github/workflows/stale.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 761d3f2fe..18991fec3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,18 +1,24 @@ -name: Stale Issues +name: Close Stale on: schedule: - - cron: "0 */8 * * *" # Every 8 hours + - cron: "0 */8 * * *" # Every 8 hours jobs: close-stale: - name: Close Stale Issues + name: Close Stale Issues and PRs runs-on: ubuntu-latest permissions: issues: write + pull-requests: write steps: - - name: Close stale issues + - name: Mark and close stale issues and PRs uses: actions/stale@v10.1.1 with: + # Issues: mark stale after 14 days of inactivity, close after 3 more days days-before-issue-stale: 14 - days-before-issue-close: 7 + days-before-issue-close: 3 + + # Pull requests: mark stale after 14 days of inactivity, close after 3 more days + days-before-pr-stale: 14 + days-before-pr-close: 3