|
| 1 | +name: Stale Issues and PRs |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + # Run daily at midnight UTC |
| 6 | + - cron: '0 0 * * *' |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +permissions: |
| 10 | + issues: write |
| 11 | + pull-requests: write |
| 12 | + |
| 13 | +jobs: |
| 14 | + stale: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: Mark stale issues and PRs |
| 18 | + uses: actions/stale@v9 |
| 19 | + with: |
| 20 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 21 | + |
| 22 | + # Issue settings |
| 23 | + stale-issue-message: | |
| 24 | + This issue has been automatically marked as stale because it has not had recent activity. |
| 25 | + It will be closed in 14 days if no further activity occurs. |
| 26 | + If this issue is still relevant, please comment or remove the stale label. |
| 27 | + stale-issue-label: 'stale' |
| 28 | + days-before-issue-stale: 60 |
| 29 | + days-before-issue-close: 14 |
| 30 | + exempt-issue-labels: 'pinned,security,bug,enhancement,help wanted,good first issue' |
| 31 | + |
| 32 | + # PR settings |
| 33 | + stale-pr-message: | |
| 34 | + This pull request has been automatically marked as stale because it has not had recent activity. |
| 35 | + It will be closed in 14 days if no further activity occurs. |
| 36 | + If this PR is still relevant, please comment, push changes, or remove the stale label. |
| 37 | + stale-pr-label: 'stale' |
| 38 | + days-before-pr-stale: 30 |
| 39 | + days-before-pr-close: 14 |
| 40 | + exempt-pr-labels: 'pinned,security,work-in-progress' |
| 41 | + |
| 42 | + # Close message |
| 43 | + close-issue-message: 'This issue was closed due to inactivity. Feel free to reopen if still relevant.' |
| 44 | + close-pr-message: 'This PR was closed due to inactivity. Feel free to reopen if still relevant.' |
| 45 | + |
| 46 | + # Operations per run (to avoid rate limiting) |
| 47 | + operations-per-run: 100 |
0 commit comments