name: "Mark or close stale issues and PRs"
on:
  schedule:
  - cron: "00 10 * * *"

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/stale@v3
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        days-before-stale: 90
        days-before-close: 30
        operations-per-run: 60
        stale-issue-message: "This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days"
        stale-pr-message: "This PR has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this PR will be closed in 30 days"
        close-issue-message: "This issue was automatically closed because of stale in 30 days"
        close-pr-message: "This PR was automatically closed because of stale in 30 days"
        stale-pr-label: "stale"
        stale-issue-label: "stale"
        exempt-issue-labels: "bug,dependencies,enhancement,help wanted,pending,wontfix"
        exempt-pr-labels: "bug,dependencies,enhancement,help wanted,pending,wontfix"

Enable actions/stale to maintain obsolete issues/PRs
Enable actions/stale to maintain obsolete issues/PRs

ref. https://github.com/actions/stale

Signed-off-by: Kentaro Hayashi <6ae879f1bd598abba767192ff2ce7060570e19f0@gmail.com>
