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

sjaranowski pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git


The following commit(s) were added to refs/heads/main by this push:
     new a5433ff  Add docs for stale action, update waiting-for-feedback label
a5433ff is described below

commit a5433ff31c4c920a5207ddc2201db68633c69564
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Feb 10 18:23:56 2025 +0100

    Add docs for stale action, update waiting-for-feedback label
---
 .github/labels.js |  2 +-
 README.md         | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 1 deletion(-)

diff --git a/.github/labels.js b/.github/labels.js
index f4a8967..198e5bb 100644
--- a/.github/labels.js
+++ b/.github/labels.js
@@ -94,7 +94,7 @@ module.exports = [
     {
         name: "waiting-for-feedback",
         color: "ffffff",
-        description: "Waiting for 4 weeks until issues or pull request will be 
closed"
+        description: "Waiting for 90 days until issues or pull request will be 
closed"
     },
     {
         name: "wontfix",
diff --git a/README.md b/README.md
index 4cffa2f..9f00d3d 100644
--- a/README.md
+++ b/README.md
@@ -370,6 +370,57 @@ Labels list are in file: 
[./.github/labels.js](https://github.com/apache/maven-g
 Action require GitHub token which will be used for performing updates.
 Please create new [Personal access tokens 
(classic)](https://github.com/settings/tokens) with `repo` scope.
 
+# Management of stale issues and PRs
+
+We need an action in project:
+
+```yml
+.github/workflows/stale.yml
+```
+
+with body:
+
+```yml
+# 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: '15 3 * * *'
+  issue_comment:
+    types: [ 'created' ]
+
+jobs:
+  stale:
+    uses: 'apache/maven-gh-actions-shared/.github/workflows/stale.yml@v4'
+
+```
+
+The cron time definition can be randomly changed to avoid executing at the 
same time in all project.
+
+## Issues and PRs with waiting-for-feedback label
+
+- will be marked as stale after 60 days
+- will be closed after next 30 days
+- items with milestone or labels `priority:blocker`, `priority:critical` will 
not be checked
+- `waiting-for-feedback` label will be removed after comments
+
 # Resources
 
 - [Workflow 
syntax](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions)

Reply via email to