[camel-k] branch master updated: Add stale action

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel-k] branch master updated: Add stale action

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

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new f7fc0a7  Add stale action
f7fc0a7 is described below

commit f7fc0a7beff03a277ee905cab89a37041d6f6ca7
Author: lburgazzoli <[hidden email]>
AuthorDate: Fri Jun 5 12:18:12 2020 +0200

    Add stale action
---
 .github/workflows/stale.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml
new file mode 100644
index 0000000..5a9e9d8
--- /dev/null
+++ b/.github/workflows/stale.yaml
@@ -0,0 +1,45 @@
+# ---------------------------------------------------------------------------
+# 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: "Stale"
+
+on:
+  schedule:
+  - cron: "0 0 * * *"
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/stale@v3
+      with:
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        days-before-stale: 30
+        days-before-close: 7
+        only-labels: waiting-for-feedback
+        remove-stale-when-updated: true
+        operations-per-run: 30
+        stale-issue-label: stale
+        exempt-issue-label: never-stale
+        stale-issue-message: |
+          This issue is stale because it has been open 30 days with no activity.
+          Remove stale label or comment or this will be closed in 7 days.        
+        stale-pr-label: stale  
+        exempt-pr-label: never-stale
+        stale-pr-message: |
+          This PR is stale because it has been open 30 days with no activity.
+          Remove stale label or comment or this will be closed in 7 days.
\ No newline at end of file