This is an automated email from the ASF dual-hosted git repository.

thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new f06bb10cc6 GH-48263: [CI] Stale issues workflow doesn't go through 
enough issues (#48264)
f06bb10cc6 is described below

commit f06bb10cc65260dd9efebba2328721428b3449ec
Author: Nic Crane <[email protected]>
AuthorDate: Mon Dec 1 10:36:51 2025 +0000

    GH-48263: [CI] Stale issues workflow doesn't go through enough issues 
(#48264)
    
    ### Rationale for this change
    
    Stale issues workflows does like 30 issues and stops as it takes API calls 
to see if they should be closed ot not.
    
    ### What changes are included in this PR?
    
    Split out workflows so it filters by things already labelled and treats 
labelling and closing as separate tasks
    
    ### Are these changes tested?
    
    Nope
    
    ### Are there any user-facing changes?
    
    Nope
    * GitHub Issue: #48263
    
    Authored-by: Nic Crane <[email protected]>
    Signed-off-by: Nic Crane <[email protected]>
---
 .github/workflows/stale.yml | 65 ++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 61 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 24e1bd6d40..939e274fa7 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -22,7 +22,7 @@ on:
   workflow_dispatch:
 
 jobs:
-  close-stale-prs:
+  mark-stale-prs:
     runs-on: ubuntu-latest
     permissions:
       issues: write
@@ -33,12 +33,31 @@ jobs:
           stale-pr-message: "Thank you for your contribution. Unfortunately, 
this pull request has been marked as stale because it has had no activity in 
the past 365 days. Please remove the stale label or comment below, or this PR 
will be closed in 14 days.  Feel free to re-open this if it has been closed in 
error. If you do not have repository permissions to reopen the PR, please tag a 
maintainer."
           stale-pr-label: "Status: stale-warning"
           days-before-pr-stale: 365
+          days-before-pr-close: -1
+          exempt-pr-labels: "Status: stale-warning"
+          # exclude issues
+          days-before-issue-stale: -1
+          days-before-issue-close: -1
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+          ascending: true
+  close-stale-prs:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+      pull-requests: write
+    steps:
+      - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008  #v10.1.0
+        with:
+          stale-pr-label: "Status: stale-warning"
+          only-pr-labels: "Status: stale-warning"
+          days-before-pr-stale: 365
           days-before-pr-close: 14
           # exclude issues
           days-before-issue-stale: -1
           days-before-issue-close: -1
           repo-token: ${{ secrets.GITHUB_TOKEN }}
-  close-stale-issues-usage:
+          ascending: true
+  mark-stale-issues-usage:
     runs-on: ubuntu-latest
     permissions:
       issues: write
@@ -50,12 +69,31 @@ jobs:
           days-before-pr-stale: -1
           days-before-pr-close: -1
           only-issue-labels: "Type: usage"
+          exempt-issue-labels: "Status: stale-warning"
           stale-issue-message: "This issue has been marked as stale because it 
has had no activity in the past 365 days. Please remove the stale label or 
comment below, or this issue will be closed in 14 days. If this usage question 
has evolved into a feature request or docs update, please remove the 'Type: 
usage' label and add the 'Type: enhancement' label instead."
           stale-issue-label: "Status: stale-warning"
           days-before-issue-stale: 365
+          days-before-issue-close: -1
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+          ascending: true
+  close-stale-issues-usage:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+      pull-requests: write
+    steps:
+      - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008  #v10.1.0
+        with:
+          # exclude PRs
+          days-before-pr-stale: -1
+          days-before-pr-close: -1
+          only-issue-labels: "Type: usage, Status: stale-warning"
+          stale-issue-label: "Status: stale-warning"
+          days-before-issue-stale: 365
           days-before-issue-close: 14
           repo-token: ${{ secrets.GITHUB_TOKEN }}
-  close-stale-issues-enhancement:
+          ascending: true
+  mark-stale-issues-enhancement:
     runs-on: ubuntu-latest
     permissions:
       issues: write
@@ -67,9 +105,28 @@ jobs:
           days-before-pr-stale: -1
           days-before-pr-close: -1
           only-issue-labels: "Type: enhancement"
-          exempt-issue-labels: "Status: needs champion"
+          exempt-issue-labels: "Status: stale-warning, Status: needs champion"
           stale-issue-message: "This issue has been marked as stale because it 
has had no activity in the past 365 days. Please remove the stale label or 
comment below, or this issue will be closed in 14 days. If this improvement is 
still desired but has no current owner, please add the 'Status: needs champion' 
label."
           stale-issue-label: "Status: stale-warning"
           days-before-issue-stale: 365
+          days-before-issue-close: -1
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+          ascending: true
+  close-stale-issues-enhancement:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+      pull-requests: write
+    steps:
+      - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008  #v10.1.0
+        with:
+          # exclude PRs
+          days-before-pr-stale: -1
+          days-before-pr-close: -1
+          only-issue-labels: "Type: enhancement, Status: stale-warning"
+          exempt-issue-labels: "Status: needs champion"
+          stale-issue-label: "Status: stale-warning"
+          days-before-issue-stale: 365
           days-before-issue-close: 14
           repo-token: ${{ secrets.GITHUB_TOKEN }}
+          ascending: true

Reply via email to