Skip to content

Close Stale Issues #560

Close Stale Issues

Close Stale Issues #560

Workflow file for this run

name: Close Stale Issues
on:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC
workflow_dispatch: # Allows manual triggering of the workflow
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Close stale issues and PRs
uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been marked as stale due to inactivity. If no further activity occurs, it will be closed in 7 days."
stale-pr-message: "This PR has been marked as stale due to inactivity. If no further activity occurs, it will be closed in 7 days."
days-before-issue-stale: 7 # Mark issues as stale after 7 days of inactivity
days-before-issue-close: 7 # Close stale issues after 7 more days (14 total)
days-before-pr-stale: 7 # Number of days before a PR becomes stale
days-before-pr-close: 7 # Number of days to wait after marking a PR as stale before closing
exempt-issue-labels: "pinned,enhancement,confirmed,priority: critical,priority: high"
exempt-pr-labels: "work-in-progress,pinned"
operations-per-run: 30 # Number of actions to perform per run