Skip to content

Commit d6d4929

Browse files
committed
Fix stale action timing
1 parent 8ffdfc2 commit d6d4929

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/close-stale.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
with:
3333
# Labels need to match with the ones in `labeler.yaml`!
3434
only-labels: waiting-for-user
35-
days-before-stale: 7
35+
days-before-stale: 60
36+
days-before-close: 7
3637
stale-issue-message: >
3738
This issue is stale because it has been waiting for your feedback for more than 60 days.
3839
The Apache Logging Services community values every submitted issue, but without additional information from you,

.github/workflows/labeler.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,19 @@ jobs:
4545

4646
steps:
4747

48+
- name: Print user type
49+
env:
50+
ISSUE_USER_TYPE: ${{ env.issue_user_type }}
51+
COMMENT_USER_TYPE: ${{ env.comment_user_type }}
52+
run: |
53+
echo "Issue created by: " $ISSUE_USER_TYPE
54+
echo "Comment created by:" $COMMENT_USER_TYPE
55+
4856
# The `waiting-for-maintainer` label needs to match with the one in `close-stale.yaml`!
4957
- name: Add `waiting-for-maintainer` label
5058
if: github.event_type == 'issues' && env.issue_user_type == 'user' || env.comment_user_type == 'user'
5159
env:
5260
ISSUE: ${{ github.event.issue.html_url }}
5361
GH_TOKEN: ${{ github.token }}
54-
ISSUE_USER_TYPE: ${{ env.issue_user_type }}
55-
COMMENT_USER_TYPE: ${{ env.comment_user_type }}
5662
run: |
57-
echo "Issue created by: " $ISSUE_USER_TYPE
58-
echo "Comment created by:" $COMMENT_USER_TYPE
5963
gh issue edit $ISSUE --add-label 'waiting-for-maintainer' --remove-label 'waiting-for-user'

0 commit comments

Comments
 (0)