|
| 1 | +name: "Stale Issue Management" |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + # Run every day at 00:00 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 | + timeout-minutes: 10 |
| 17 | + steps: |
| 18 | + - name: Mark/Close Stale Issues and PRs |
| 19 | + uses: actions/stale@v9 |
| 20 | + with: |
| 21 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 22 | + |
| 23 | + # Issues |
| 24 | + stale-issue-message: > |
| 25 | + This issue has been automatically marked as stale because it has not had |
| 26 | + recent activity. It will be closed in 14 days if no further activity occurs. |
| 27 | + Thank you for your contributions. |
| 28 | + close-issue-message: > |
| 29 | + This issue was automatically closed because it has not had activity for 74 days |
| 30 | + (marked stale after 60 days, then closed after 14 more days of inactivity). |
| 31 | + Please feel free to reopen if you believe this issue is still relevant. |
| 32 | + days-before-issue-stale: 60 |
| 33 | + days-before-issue-close: 14 |
| 34 | + stale-issue-label: 'stale' |
| 35 | + exempt-issue-labels: 'pinned,security,roadmap,help wanted' |
| 36 | + |
| 37 | + # Pull Requests |
| 38 | + stale-pr-message: > |
| 39 | + This pull request has been automatically marked as stale because it has not had |
| 40 | + recent activity. It will be closed in 7 days if no further activity occurs. |
| 41 | + Please address any review comments or conflicts. |
| 42 | + close-pr-message: > |
| 43 | + This pull request was automatically closed because it has not had activity for 37 days |
| 44 | + (marked stale after 30 days, then closed after 7 more days of inactivity). |
| 45 | + Please feel free to reopen and address the review comments if you wish to continue. |
| 46 | + days-before-pr-stale: 30 |
| 47 | + days-before-pr-close: 7 |
| 48 | + stale-pr-label: 'stale' |
| 49 | + exempt-pr-labels: 'pinned,security,in progress' |
| 50 | + |
| 51 | + # General settings |
| 52 | + operations-per-run: 100 |
| 53 | + remove-stale-when-updated: true |
| 54 | + ascending: false |
0 commit comments