Skip to content

Commit 4431804

Browse files
Update stale discussion workflow configuration
Added 'Libraries' to the category matrix and set DAYS_BEFORE_CLOSE to 365 days. Updated the close message, exempted 'Feature Request' label, and refactored environment variable usage for days-before-close.
1 parent b7f8c5e commit 4431804

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/discussions-stale.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,24 @@ jobs:
2020
category:
2121
- 'Actions'
2222
- 'GSMS'
23+
- 'Libraries'
2324
- 'Sunshine'
2425
- 'Themerr'
2526
max-parallel: 1 # run one at a time to attempt to avoid GitHub api rate limits
2627
steps:
2728
- name: stalesweeper
2829
uses: thenick775/stalesweeper@eeb7723f2e609a0380ff8ca7813580944dd193a6 # repo does not have releases
30+
env:
31+
DAYS_BEFORE_CLOSE: '365'
2932
with:
30-
repo-token: ${{ secrets.GH_BOT_TOKEN }}
31-
message: >
32-
It seems this discussion hasn't had any activity in the past 90 days.
33-
To help keep our backlog tidy, we'll be closing this discussion.
34-
If it's still something you'd like addressed, please let us know by leaving a comment.
35-
Thanks!
36-
days-before-close: '90'
37-
close-unanswered: 'true'
3833
category: ${{ matrix.category }}
3934
close-reason: 'OUTDATED'
35+
close-unanswered: 'true'
36+
days-before-close: '${{ env.DAYS_BEFORE_CLOSE}}'
4037
# todo: dry-run default is true during testing
4138
dry-run: ${{ github.event_name == 'schedule' && 'true' || github.event.inputs.dry-run }}
39+
exempt-labels: 'Feature Request'
40+
message: >
41+
This discussion was closed because it has been inactive for ${{ env.DAYS_BEFORE_CLOSE}} days.
42+
You may still comment and the discussion can be reopened by a moderator if needed.
43+
repo-token: ${{ secrets.GH_BOT_TOKEN }}

0 commit comments

Comments
 (0)