Skip to content

Add stalebot to label/close stale PRs and issues #1

Add stalebot to label/close stale PRs and issues

Add stalebot to label/close stale PRs and issues #1

Workflow file for this run

name: Handle stale issues and PRs
on:
schedule:
- cron: "0 11 * * *"
push:
branches: [stale-bot]
jobs:
handle-stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 90
days-before-issue-close: -1
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity."
days-before-pr-stale: 60
days-before-pr-close: 120
stale-pr-label: "This PR is stale because it has been open for 60 days with no activity."
stale-pr-message: "This PR"
close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale."
repo-token: ${{ secrets.GITHUB_TOKEN }}