GitHub Action to close issues certain days after a stale label has been added.
name: Close Stale Issues
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: directus/stale-issues-action@v1
with:
stale-label: stale
days-before-close: 7
close-message: Closing this issue as it has become stale.
A maximum of 50 issues with the stale label are processed per run in order not to exceed GitHub's rate limits. If more stale issues are expected, it's recommended to schedule the action more frequently (but at no more than once an hour).