From 6bd9244cade33b5a6f88880a4abe8bb340345a02 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:53:47 +0000 Subject: [PATCH 1/2] chore: make shared stale workflow handle issues only --- .github/workflows/stale.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 457720c..1d0665b 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,13 +9,15 @@ jobs: permissions: contents: read issues: write - pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 #v11.0.0 with: days-before-stale: 60 days-before-close: 7 + # Only handle issues; never mark or close pull requests + days-before-pr-stale: -1 + days-before-pr-close: -1 stale-issue-message: >- This issue has been automatically marked as stale because it has not had recent activity. From 5f521091a2ddb9a5be76adf08bc34b7429343129 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:57:33 +0000 Subject: [PATCH 2/2] chore: give pull requests a longer stale window instead of skipping them --- .github/workflows/stale.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1d0665b..2212c7c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,18 +9,23 @@ jobs: permissions: contents: read issues: write + pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 #v11.0.0 with: days-before-stale: 60 days-before-close: 7 - # Only handle issues; never mark or close pull requests - days-before-pr-stale: -1 - days-before-pr-close: -1 + # Give pull requests much longer before they are marked stale or closed + days-before-pr-stale: 180 + days-before-pr-close: 30 stale-issue-message: >- This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. + stale-pr-message: >- + This pull request has been automatically marked as stale because + it has not had recent activity. + It will be closed in 30 days if no further activity occurs. # Better to exclude certain issues from being marked as stale exempt-issue-labels: "help wanted,security,pinned,bug"