name: Stale Issues
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
name: Close stale issues and PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: >
This issue has been automatically marked as stale because it has not
had recent activity. It will be closed in 14 days if no further
activity occurs. If this is still relevant, please comment or remove
the stale label.
stale-pr-message: >
This pull request has been automatically marked as stale because it
has not had recent activity. It will be closed in 14 days if no
further activity occurs.
days-before-stale: 60
days-before-close: 14
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: "pinned,security,good first issue"
exempt-pr-labels: "pinned,security"