Files
neon 7b72f06130 ci: close inactive pull requests automatically
Mark pull requests stale after 30 inactive days and close them seven days later. Clear the stale state when new activity arrives so active contributions remain open.
2026-10-28 01:47:44 +00:00

41 lines
1.4 KiB
YAML

name: Stale Issues and Pull Requests
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
permissions:
actions: write
issues: write
pull-requests: write
jobs:
stale:
name: Mark and Close Stale Issues and Pull Requests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
operations-per-run: 1000
days-before-issue-stale: 60
days-before-issue-close: 14
days-before-pr-stale: 30
days-before-pr-close: 7
stale-issue-label: stale
stale-pr-label: stale
remove-pr-stale-when-updated: true
exempt-issue-labels: "pinned,security,discussion"
stale-issue-message: >
This issue has been inactive for 60 days. It will be closed in 14 days
unless there is new activity. If this is still relevant, please leave a
comment or update the issue.
close-issue-message: >
Closing due to inactivity. Feel free to reopen if this is still relevant.
stale-pr-message: >
This pull request has been inactive for 30 days. It will be closed in 7 days
unless there is new activity.
close-pr-message: >
Closing due to inactivity. Feel free to reopen when this is ready to continue.