Close Old Comments #102
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
# GitHub Actions Virtual Environments | |
# https://github.com/actions/virtual-environments/ | |
name: Close Old Comments | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run weekly on Sundays | |
# https://crontab.guru/weekly | |
- cron: 0 0 * * 0 | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/stale | |
- uses: actions/stale@v9 | |
with: | |
# debug-only: true | |
any-of-labels: 'blog comments & questions' | |
days-before-stale: 15 | |
days-before-close: 1 | |
close-issue-message: "Thanks so much for leaving feedback about this blog post! After 2 weeks of inactivity these issues are automatically closed, but feel free to continue the discussion!" | |
stale-issue-label: 'stale' | |
close-issue-reason: completed | |
days-before-pr-close: -1 # never close a PR |