name: "Stale PRs"
on:
  schedule:
  # * is a special character in YAML so you have to quote this string
  - cron: "0 0 * * *"

permissions: {}

jobs:
  stale:
    permissions:
      pull-requests: write
    if: github.repository_owner == 'pandas-dev'
    runs-on: ubuntu-24.04
    steps:
    - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        stale-pr-message: "This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this."
        stale-pr-label: "Stale"
        exempt-pr-labels: "Needs Review,Blocked,Needs Discussion"
        days-before-issue-stale: -1
        days-before-pr-stale: 30
        days-before-close: -1
        remove-stale-when-updated: false
        debug-only: false
