name: 'Handle inactive PRs'
on:
  schedule:
    - cron: '30 1 * * *'

permissions:
  actions: read
  checks: none
  contents: read
  deployments: none
  issues: write
  packages: none
  pull-requests: write
  repository-projects: none
  security-events: none
  statuses: none

jobs:
  stale:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/stale@v10
        with:
          debug-only: false
          start-date: 2021-03-01T00:00:00Z
          days-before-pr-stale: 14
          days-before-pr-close: -1
          days-before-issue-stale: -1
          days-before-issue-close: -1
          exempt-pr-labels: Do not close
          stale-pr-message: If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.
          stale-pr-label: Stale
