|
| 1 | +name: 'Close stale issues and PRs' |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + # Run daily at 1:30 AM UTC |
| 6 | + - cron: '30 1 * * *' |
| 7 | + workflow_dispatch: # Allow manual triggering |
| 8 | + |
| 9 | +permissions: |
| 10 | + issues: write |
| 11 | + pull-requests: write |
| 12 | + |
| 13 | +jobs: |
| 14 | + stale: |
| 15 | + name: 'Mark and close stale issues and PRs' |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - uses: actions/stale@v10 |
| 19 | + with: |
| 20 | + # Stale configuration |
| 21 | + days-before-stale: 90 |
| 22 | + days-before-close: 60 |
| 23 | + |
| 24 | + # Labels |
| 25 | + stale-issue-label: 'stale' |
| 26 | + stale-pr-label: 'stale' |
| 27 | + exempt-issue-labels: 'help-wanted,good-first-issue,pinned' |
| 28 | + exempt-pr-labels: 'help-wanted,good-first-issue,pinned' |
| 29 | + |
| 30 | + # Exemptions |
| 31 | + exempt-all-issue-assignees: true |
| 32 | + exempt-all-pr-assignees: true |
| 33 | + exempt-all-issue-milestones: true |
| 34 | + exempt-all-pr-milestones: true |
| 35 | + |
| 36 | + # Issue messages |
| 37 | + stale-issue-message: | |
| 38 | + Hello 👋 Looks like there was no activity on this issue for the last 90 days. |
| 39 | + **Do you mind updating us on the status?** Is this still reproducible or needed? If yes, just comment on this issue or push a commit. Thanks! 🤗 |
| 40 | + If there will be no activity for 60 days, this issue will be closed (we can always reopen an issue if we need!). |
| 41 | +
|
| 42 | + close-issue-message: | |
| 43 | + Closing for now as there was no activity for the last 60 days after being marked as stale, let us know if you need this to be reopened! 🤗 |
| 44 | +
|
| 45 | + # PR messages |
| 46 | + stale-pr-message: | |
| 47 | + Hello 👋 Looks like there was no activity on this amazing PR for the last 90 days. |
| 48 | + **Do you mind updating us on the status?** Is there anything we can help with? If you plan to still work on it, just comment on this PR or push a commit. Thanks! 🤗 |
| 49 | + If there will be no activity for 60 days, this PR will be closed (we can always reopen a PR if you get back to this!). |
| 50 | +
|
| 51 | + close-pr-message: | |
| 52 | + Closing for now as there was no activity for the last 60 days after being marked as stale, let us know if you need this to be reopened! 🤗 |
| 53 | +
|
| 54 | + # Operations and behavior |
| 55 | + operations-per-run: 100 |
| 56 | + ascending: true |
| 57 | + remove-stale-when-updated: true |
0 commit comments