name: Close stale issues and PRs
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-stale: 30
days-before-close: 7
stale-issue-message: >
This issue has had no activity for 30 days. It will be
closed in 7 days unless there is a new comment.
stale-pr-message: >
This PR has had no activity for 30 days. It will be
closed in 7 days unless there is a new commit or comment.
close-issue-message: Closing due to inactivity.
close-pr-message: Closing due to inactivity.
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: pinned,security
exempt-pr-labels: pinned