name: 'Close stale issues and PRs'
on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v4
        with:
          stale-issue-message: 'This issue has no activity in a while - it will be closed soon.'
          exempt-issue-labels: enhancement
          stale-pr-message: 'This PR has no activity in a while - it will be closed soon.'
          days-before-stale: 42
          days-before-close: 7