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

davidarthur pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ad19d299300 KAFKA-15073 Close stale PRs [2/n] (#17166)
ad19d299300 is described below

commit ad19d299300fc0511fc83a407aa5e6a330242762
Author: David Arthur <[email protected]>
AuthorDate: Wed Sep 11 15:10:03 2024 -0400

    KAFKA-15073 Close stale PRs [2/n] (#17166)
    
    As a follow-up of #13827, this patch updates the stale PR workflow to 
automatically close PRs that have not had activity in 120 days
    
    Reviewers: Chia-Ping Tsai <[email protected]>, Josep Prat 
<[email protected]>
---
 .github/workflows/stale.yml | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index ec01e252ee5..a5d4b6fbf18 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -42,14 +42,22 @@ jobs:
         with:
           debug-only: ${{ inputs.dryRun || false }}
           operations-per-run: ${{ inputs.operationsPerRun || 100 }}
+          ascending: true
           days-before-stale: 90
-          days-before-close: -1
+          days-before-close: 30  # Since adding 'stale' will update the PR, 
days-before-close is relative to that.
           stale-pr-label: 'stale'
-          stale-pr-message: >
+          stale-pr-message: |
             This PR is being marked as stale since it has not had any activity 
in 90 days. If you
-            would like to keep this PR alive, please ask a committer for 
review. If the PR has 
-            merge conflicts, please update it with the latest from trunk (or 
appropriate release branch)
+            would like to keep this PR alive, please leave a comment asking 
for a review. If the PR has 
+            merge conflicts, update it with the latest from the base branch.
+            <p>
+            If you are having difficulty finding a reviewer, please reach out 
on the 
+            [mailing list](https://kafka.apache.org/contact).
             <p>
             If this PR is no longer valid or desired, please feel free to 
close it. If no activity
             occurs in the next 30 days, it will be automatically closed.
-          
+          close-pr-label: 'closed-stale'
+          close-pr-message: |
+            This PR has been closed since it has not had any activity in 120 
days. If you feel like this
+            was a mistake, or you would like to continue working on it, please 
feel free to re-open the 
+            PR and ask for a review.

Reply via email to