|
| 1 | +# Close stale issues and PRs |
| 2 | +# https://github.com/actions/stale |
| 3 | +name: "Close Stale Issues and PRs" |
| 4 | + |
| 5 | +on: |
| 6 | + schedule: |
| 7 | + # Run daily at 00:00 UTC |
| 8 | + - cron: "0 0 * * *" |
| 9 | + workflow_dispatch: # Allow manual triggering |
| 10 | + |
| 11 | +permissions: |
| 12 | + issues: write |
| 13 | + pull-requests: write |
| 14 | + |
| 15 | +jobs: |
| 16 | + stale: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - name: Check for stale issues and PRs |
| 20 | + uses: actions/stale@v9 |
| 21 | + with: |
| 22 | + # Stale issues |
| 23 | + days-before-issue-stale: 60 |
| 24 | + days-before-issue-close: 14 |
| 25 | + stale-issue-label: "status: stale" |
| 26 | + stale-issue-message: | |
| 27 | + This issue has been automatically marked as stale because it has not had recent activity. |
| 28 | + It will be closed in 14 days if no further activity occurs. |
| 29 | +
|
| 30 | + If this issue is still relevant, please: |
| 31 | + - Comment to keep it open |
| 32 | + - Remove the "status: stale" label |
| 33 | + - Provide additional information or updates |
| 34 | +
|
| 35 | + Thank you for your contributions! |
| 36 | + close-issue-message: | |
| 37 | + This issue has been automatically closed due to inactivity. |
| 38 | +
|
| 39 | + If you believe this issue is still relevant: |
| 40 | + - Feel free to reopen it with additional context |
| 41 | + - Create a new issue referencing this one |
| 42 | +
|
| 43 | + Thank you for understanding! |
| 44 | +
|
| 45 | + # Stale PRs |
| 46 | + days-before-pr-stale: 30 |
| 47 | + days-before-pr-close: 14 |
| 48 | + stale-pr-label: "status: stale" |
| 49 | + stale-pr-message: | |
| 50 | + This pull request has been automatically marked as stale because it has not had recent activity. |
| 51 | + It will be closed in 14 days if no further activity occurs. |
| 52 | +
|
| 53 | + If you plan to continue working on this PR: |
| 54 | + - Push new commits or rebase on the latest main |
| 55 | + - Comment to indicate you're still working on it |
| 56 | + - Remove the "status: stale" label |
| 57 | +
|
| 58 | + Thank you for your contribution! |
| 59 | + close-pr-message: | |
| 60 | + This pull request has been automatically closed due to inactivity. |
| 61 | +
|
| 62 | + If you'd like to continue this work: |
| 63 | + - Feel free to reopen this PR if it's still relevant |
| 64 | + - Create a new PR if the changes need to be rebased |
| 65 | +
|
| 66 | + Thank you for your contribution! |
| 67 | +
|
| 68 | + # Exemptions |
| 69 | + exempt-issue-labels: "priority: high,status: in-progress,status: blocked" |
| 70 | + exempt-pr-labels: "priority: high,status: in-progress,status: blocked" |
| 71 | + |
| 72 | + # Operations per run (to avoid rate limiting) |
| 73 | + operations-per-run: 100 |
| 74 | + |
| 75 | + # Don't close issues/PRs with recent updates |
| 76 | + exempt-milestones: true |
| 77 | + exempt-all-milestones: false |
0 commit comments