|
| 1 | +name: Close stale issues and PRs |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: '30 1 * * *' # Run daily at 1:30 AM UTC |
| 6 | + workflow_dispatch: # Allow manual trigger |
| 7 | + |
| 8 | +jobs: |
| 9 | + stale: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + permissions: |
| 12 | + issues: write |
| 13 | + pull-requests: write |
| 14 | + |
| 15 | + steps: |
| 16 | + - uses: actions/stale@v9 |
| 17 | + with: |
| 18 | + # Issue settings |
| 19 | + stale-issue-message: > |
| 20 | + This issue has been automatically marked as stale because it has not had |
| 21 | + recent activity. It will be closed in 7 days if no further activity occurs. |
| 22 | + Thank you for your contributions. |
| 23 | + close-issue-message: > |
| 24 | + This issue was closed because it has been stale for 7 days with no activity. |
| 25 | + Feel free to reopen if this is still relevant. |
| 26 | + days-before-issue-stale: 60 |
| 27 | + days-before-issue-close: 7 |
| 28 | + stale-issue-label: 'stale' |
| 29 | + |
| 30 | + # PR settings |
| 31 | + stale-pr-message: > |
| 32 | + This pull request has been automatically marked as stale because it has not had |
| 33 | + recent activity. It will be closed in 14 days if no further activity occurs. |
| 34 | + Thank you for your contributions. |
| 35 | + close-pr-message: > |
| 36 | + This pull request was closed because it has been stale for 14 days with no activity. |
| 37 | + Feel free to reopen if you'd like to continue working on this. |
| 38 | + days-before-pr-stale: 60 |
| 39 | + days-before-pr-close: 14 |
| 40 | + stale-pr-label: 'stale' |
| 41 | + |
| 42 | + # Exempt labels - items with these labels won't be marked stale |
| 43 | + exempt-issue-labels: 'pinned,security,bug,enhancement' |
| 44 | + exempt-pr-labels: 'pinned,security,work-in-progress' |
| 45 | + |
| 46 | + # Don't stale items with milestones |
| 47 | + exempt-all-milestones: true |
0 commit comments