name: Stale Issues and PRs
on:
schedule:
- cron: "0 9 * * 1" # Every Monday at 9:00 UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
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 activity in the last 60 days. It will be closed in 14 days if no
further activity occurs. If this issue 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 activity in the last 30 days. It will be closed in 14
days if no further activity occurs. If this PR is still in progress,
please comment or push new commits.
close-issue-message: >
This issue was closed because it has been stale for 14 days with no
activity. Feel free to reopen if still relevant.
close-pr-message: >
This pull request was closed because it has been stale for 14 days
with no activity. Feel free to reopen if still relevant.
days-before-issue-stale: 60
days-before-pr-stale: 30
days-before-issue-close: 14
days-before-pr-close: 14
stale-issue-label: "status/stale"
stale-pr-label: "status/stale"
exempt-issue-labels: "priority/high,status/blocked,good first issue"
exempt-pr-labels: "priority/high,status/blocked"