generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflow): add stalesweeper (#510)
- Loading branch information
1 parent
4f9f19e
commit 3817180
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Close Stale Discussions | ||
|
||
on: | ||
schedule: | ||
- cron: '00 11 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
dry-run: | ||
description: 'Run the action without closing any discussions' | ||
type: boolean | ||
|
||
jobs: | ||
close-stale-discussions: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
category: | ||
- 'Actions' | ||
- 'GSMS' | ||
- 'Sunshine' | ||
- 'Themerr' | ||
steps: | ||
- name: stalesweeper | ||
uses: steffen-karlsson/stalesweeper@v1.1.1 | ||
with: | ||
repo-token: ${{ secrets.GH_BOT_TOKEN }} | ||
message: > | ||
It seems this discussion hasn't had any activity in the past 90 days. | ||
To help keep our backlog tidy, we'll be closing this discussion. | ||
If it's still something you'd like addressed, please let us know by leaving a comment. | ||
Thanks! | ||
days-before-close: '90' | ||
close-unanswered: 'true' | ||
category: ${{ matrix.category }} | ||
close-reason: 'OUTDATED' | ||
# todo: dry-run default is true during testing | ||
dry-run: ${{ github.event_name == 'schedule' && 'true' || github.event.inputs.dry-run }} |