name: Mark stale pull requests

on: workflow_dispatch

permissions:
  pull-requests: write

jobs:
  stale:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/stale@v8
      with:
        close-pr-message: 'Thanks for the pull request, but since it was stale for more than a 30 days we are closing it. If you want to work back on it, feel free to re-open it or create a new one.'
        stale-pr-label: 'stale'

        days-before-stale: -1
        days-before-issue-stale: -1
        days-before-pr-stale: 30

        days-before-close: -1
        days-before-issue-close: -1
        days-before-pr-close: 0
        
        operations-per-run: 300
