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

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


The following commit(s) were added to refs/heads/main by this push:
     new 88177c3  ORC-1072: Add 'Stale' GitHub Action job (#986)
88177c3 is described below

commit 88177c3202e25dc3840ec9d209e76c93b6884078
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Jan 2 08:58:55 2022 -0800

    ORC-1072: Add 'Stale' GitHub Action job (#986)
    
    ### What changes were proposed in this pull request?
    
    This PR aims to add a new GitHub Action job, `Stale`.
    
    ### Why are the changes needed?
    
    This will help the maintenance of the PRs with `days-before-stale=365` (1 
year).
    
    ### How was this patch tested?
    
    Manually review.
---
 .github/workflows/stale.yml | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000..1145fb0
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,41 @@
+#
+# 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 PRs
+
+on:
+  schedule:
+  - cron: "0 0 * * *"
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/stale@c201d45ef4b0ccbd3bb0616f93bae13e73d0a080 # [email protected]
+      with:
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        stale-pr-message: >
+          We're closing this PR because it hasn't been updated in a while.
+          This isn't a judgement on the merit of the PR in any way. It's just
+          a way of keeping the PR queue manageable.
+
+          If you'd like to revive this PR, please reopen it and ask a
+          committer to remove the Stale tag!
+        days-before-stale: 365
+        days-before-close: 0

Reply via email to