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

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


The following commit(s) were added to refs/heads/main by this push:
     new 08a4852f2 [ci] Add stale PR workflow (#1411)
08a4852f2 is described below

commit 08a4852f285f364748bac89767cb8f97a475b9b1
Author: Ryan Huang <[email protected]>
AuthorDate: Mon Jun 22 22:40:02 2026 +0800

    [ci] Add stale PR workflow (#1411)
---
 .github/workflows/stale_pull_request.yml | 72 ++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/.github/workflows/stale_pull_request.yml 
b/.github/workflows/stale_pull_request.yml
new file mode 100644
index 000000000..61e403caf
--- /dev/null
+++ b/.github/workflows/stale_pull_request.yml
@@ -0,0 +1,72 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+name: Close Stale Pull Requests
+
+on:
+  workflow_dispatch:
+  schedule:
+    - cron: "30 1 * * *"
+
+permissions:
+  contents: read
+  issues: write
+  pull-requests: write
+
+jobs:
+  stale:
+    if: github.repository == 'apache/mahout'
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+
+    steps:
+      - name: Close Stale Pull Requests
+        uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
+        with:
+          repo-token: ${{ github.token }}
+
+          # Ignore issues.
+          days-before-issue-stale: -1
+          days-before-issue-close: -1
+
+          # Pull request stale policy.
+          days-before-pr-stale: 30
+          days-before-pr-close: 7
+          stale-pr-label: stale
+          stale-pr-message: |
+            This pull request has been automatically marked as stale because 
it has not had any activity for 30 days.
+
+            It will be closed in another 7 days if no further activity occurs. 
Thank you for your contribution. If you'd like to keep this open, leave any 
comment and the stale label will be removed.
+
+            You can always ask for help on the [Mahout dev mailing 
list](https://lists.apache.org/[email protected]) or in [GitHub 
Discussions](https://github.com/apache/mahout/discussions).
+          close-pr-message: |
+            This pull request has been automatically closed because there has 
been no more activity in the 7 days since being marked stale.
+
+            Please feel free to reopen or open a new pull request if you'd 
still like this to be addressed. You can always ask for help on the [Mahout dev 
mailing list](https://lists.apache.org/[email protected]) or in 
[GitHub Discussions](https://github.com/apache/mahout/discussions).
+
+            Thanks again for your contribution!
+          exempt-pr-labels: >
+            weekly-release-blocker,
+            release-blocker,
+            security,
+            not-stale,
+            unstale
+          exempt-all-pr-milestones: true
+
+          # Shared stale action settings.
+          operations-per-run: 500
+          remove-pr-stale-when-updated: true
+          ascending: true

Reply via email to