Skip to content
This repository was archived by the owner on Aug 4, 2026. It is now read-only.

Close stale issues and PRs #267

Close stale issues and PRs

Close stale issues and PRs #267

# This workflow automatically marks inactive issues and pull requests as stale
# and closes them after 7 days of inactivity.
# Reference: https://github.com/marketplace/actions/close-stale-issues
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *' # runs daily at 01:30 UTC
jobs:
stale:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been automatically marked as stale after 7 days of inactivity.'
stale-pr-message: 'This PR has been automatically marked as stale after 7 days of inactivity.'
days-before-stale: 7 # marks issue/PR as stale after 7 days
days-before-close: 0 # closes immediately after being marked stale (or you can set a different number of days)
stale-issue-label: 'stale'
stale-pr-label: 'stale'
exempt-issue-labels: 'pinned,important'
exempt-pr-labels: 'pinned,important'