You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/05/09 07:53:34 UTC

(logging-log4j2) branch 2.x updated: Fix stale action timing

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

pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/2.x by this push:
     new d6d4929d35 Fix stale action timing
d6d4929d35 is described below

commit d6d4929d35a2bd1fe6fd473d900a3f371c0b23c7
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Thu May 9 09:53:22 2024 +0200

    Fix stale action timing
---
 .github/workflows/close-stale.yaml |  3 ++-
 .github/workflows/labeler.yaml     | 12 ++++++++----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/close-stale.yaml b/.github/workflows/close-stale.yaml
index 0264a6840c..99b11a3de6 100644
--- a/.github/workflows/close-stale.yaml
+++ b/.github/workflows/close-stale.yaml
@@ -32,7 +32,8 @@ jobs:
         with:
           # Labels need to match with the ones in `labeler.yaml`!
           only-labels: waiting-for-user
-          days-before-stale: 7
+          days-before-stale: 60
+          days-before-close: 7
           stale-issue-message: >
             This issue is stale because it has been waiting for your feedback for more than 60 days.
             The Apache Logging Services community values every submitted issue, but without additional information from you,
diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml
index 38c61b6a67..4f31abd256 100644
--- a/.github/workflows/labeler.yaml
+++ b/.github/workflows/labeler.yaml
@@ -45,15 +45,19 @@ jobs:
 
     steps:
 
+     - name: Print user type
+       env:
+         ISSUE_USER_TYPE: ${{ env.issue_user_type }}
+         COMMENT_USER_TYPE: ${{ env.comment_user_type }}
+       run: |
+         echo "Issue created by: " $ISSUE_USER_TYPE
+         echo "Comment created by:" $COMMENT_USER_TYPE
+
      # The `waiting-for-maintainer` label needs to match with the one in `close-stale.yaml`!
      - name: Add `waiting-for-maintainer` label
        if: github.event_type == 'issues' && env.issue_user_type == 'user' || env.comment_user_type == 'user'
        env:
          ISSUE: ${{ github.event.issue.html_url }}
          GH_TOKEN: ${{ github.token }}
-         ISSUE_USER_TYPE: ${{ env.issue_user_type }}
-         COMMENT_USER_TYPE: ${{ env.comment_user_type }}
        run: |
-         echo "Issue created by: " $ISSUE_USER_TYPE
-         echo "Comment created by:" $COMMENT_USER_TYPE
          gh issue edit $ISSUE --add-label 'waiting-for-maintainer' --remove-label 'waiting-for-user'