Skip to content

Close stale issues and PRs #664

Close stale issues and PRs

Close stale issues and PRs #664

Workflow file for this run

# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: "Close stale issues and PRs"
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
with:
stale-issue-message: "This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days."
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days."
close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity."
close-pr-message: "This PR was closed because it has been stalled for 10 days with no activity."
exempt-issue-labels: "Feature Request,documentation,enhancement"
days-before-issue-stale: 45
days-before-pr-stale: -1
days-before-issue-close: 7
days-before-pr-close: -1
ascending: true
operations-per-run: 400