Skip to content

Close Old Comments #102

Close Old Comments

Close Old Comments #102

# 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