Skip to content

Close Stale Issues and PRs #16

Close Stale Issues and PRs

Close Stale Issues and PRs #16

Workflow file for this run

name: Close Stale Issues and PRs
on:
schedule:
# Run once a day at 10:30 UTC
- cron: '30 10 * * *'
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# --- Consolidated Days Inputs (These are correct) ---
days-before-stale: 30
days-before-close: 7
# --- Explicit Label Inputs (Corrected for the error) ---
stale-issue-label: 'stale'
stale-pr-label: 'stale' # Use the same label for both issues and PRs
# --- Message Inputs ---
stale-issue-message: 'This issue is stale because it has been open for 30 days without activity. It will be automatically closed in 7 days unless a comment is made or the stale label is removed.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
stale-pr-message: 'This PR is stale because it has been open for 30 days without activity. It will be automatically closed in 7 days unless a comment is made or the stale label is removed.'
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'
# --- Exemption Inputs ---
exempt-issue-labels: 'bug, enhancement, documentation'
exempt-pr-labels: 'in progress'