|
| 1 | +name: Mark Stale Issues and PRs |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + # Run every day at 00:00 UTC |
| 6 | + - cron: '0 0 * * *' |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +jobs: |
| 10 | + stale: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + permissions: |
| 13 | + issues: write |
| 14 | + pull-requests: write |
| 15 | + steps: |
| 16 | + - name: Mark stale issues and PRs |
| 17 | + uses: actions/stale@v9 |
| 18 | + with: |
| 19 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 20 | + |
| 21 | + # Issues configuration |
| 22 | + stale-issue-message: | |
| 23 | + This issue has been automatically marked as stale because it has not had recent activity. |
| 24 | + It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
| 25 | + |
| 26 | + If this issue is still relevant, please: |
| 27 | + - Add a comment to keep it active |
| 28 | + - Remove the `stale` label |
| 29 | + - Or close it if it's no longer needed |
| 30 | + close-issue-message: | |
| 31 | + This issue was automatically closed due to inactivity. If you believe this was done in error, |
| 32 | + please feel free to reopen it or create a new issue. |
| 33 | + days-before-issue-stale: 60 |
| 34 | + days-before-issue-close: 7 |
| 35 | + stale-issue-label: 'stale' |
| 36 | + exempt-issue-labels: 'priority: critical,priority: high,status: in-progress,help wanted,good first issue' |
| 37 | + |
| 38 | + # PR configuration |
| 39 | + stale-pr-message: | |
| 40 | + This pull request has been automatically marked as stale because it has not had recent activity. |
| 41 | + It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
| 42 | + |
| 43 | + If this PR is still relevant, please: |
| 44 | + - Add a comment or push new commits |
| 45 | + - Remove the `stale` label |
| 46 | + - Or close it if it's no longer needed |
| 47 | + close-pr-message: | |
| 48 | + This pull request was automatically closed due to inactivity. If you believe this was done in error, |
| 49 | + please feel free to reopen it or create a new PR. |
| 50 | + days-before-pr-stale: 30 |
| 51 | + days-before-pr-close: 7 |
| 52 | + stale-pr-label: 'stale' |
| 53 | + exempt-pr-labels: 'priority: critical,priority: high,status: in-progress,status: needs-review' |
| 54 | + |
| 55 | + # General settings |
| 56 | + operations-per-run: 30 |
| 57 | + remove-stale-when-updated: true |
| 58 | + ascending: true |
| 59 | + |
0 commit comments