You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2023/06/10 20:47:20 UTC

[kafka] branch trunk updated: MINOR: Enable schedule stale PR workflow (#13841)

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 9637cc7a321 MINOR: Enable schedule stale PR workflow (#13841)
9637cc7a321 is described below

commit 9637cc7a3210312fb28324c17513d095b53d8551
Author: David Arthur <mu...@gmail.com>
AuthorDate: Sat Jun 10 16:46:55 2023 -0400

    MINOR: Enable schedule stale PR workflow (#13841)
    
    Also fixes a few things in the workflow config (label name, better PR comment)
    
    Reviewers: Josep Prat <jo...@aiven.io>
---
 .github/workflows/stale.yml | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index a5dcef3ef9c..a22c6063a45 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -13,10 +13,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-name: 'Close stale issues and PRs'
+name: 'Handle stale PRs'
 on:
-  #schedule:
-  #  - cron: '30 3 * * *'
+  schedule:
+    - cron: '30 3 * * *'    # Run at 3:30 UTC nightly
   workflow_dispatch:
     inputs:
       dryRun:
@@ -40,13 +40,16 @@ jobs:
     steps:
       - uses: actions/stale@v8
         with:
-          debug-only: ${{ inputs.dryRun }}
-          operations-per-run: ${{ inputs.operationsPerRun }}
+          debug-only: ${{ inputs.dryRun || false }}
+          operations-per-run: ${{ inputs.operationsPerRun || 30 }}
           days-before-stale: 90
           days-before-close: -1
-          stale-issue-label: 'stale'
+          stale-pr-label: 'stale'
           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)
             
+            If this PR is no longer valid or desired, please feel free to close it. If no activity
+            occurrs in the next 30 days, it will be automatically closed.
+