Close Stale Issues and PRs #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |