|
1 | 1 | name: Manage Stale, Legacy, and Close Issues
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - # Uncomment the schedule below to run automatically, or trigger manually with workflow_dispatch. |
5 |
| - # schedule: |
6 |
| - # - cron: '0 4 * * *' # 04:00 UTC |
7 |
| - # - cron: '30 5 * * *' # 05:30 UTC |
8 |
| - |
| 4 | + # Uncomment the schedule below to run automatically, or trigger manually with workflow_dispatch. |
| 5 | + # schedule: |
| 6 | + # - cron: '0 4 * * *' # 04:00 UTC |
| 7 | + |
| 8 | + # Uncomment below and enable debug-only when testing changes via PR |
| 9 | + # push: |
| 10 | + # branches: |
| 11 | + # - manage-stale-issues |
| 12 | + # pull_request: |
| 13 | + # branches: |
| 14 | + # - manage-stale-issues |
| 15 | + |
9 | 16 | workflow_dispatch:
|
10 | 17 |
|
11 | 18 | jobs:
|
|
43 | 50 | debug-only: false
|
44 | 51 | enable-statistics: true
|
45 | 52 | remove-stale-when-updated: true
|
46 |
| - operations-per-run: 500 |
47 |
| - |
48 |
| - # ---------------------------------------------------------------------------- |
49 |
| - # Job: mark-legacy-issue |
50 |
| - # Summary: |
51 |
| - # Marks open issues as "legacy" (using ignore-updates so that only the creation date is considered) |
52 |
| - # if they were created over 2 years (730 days) ago and lack exempt labels like "pinned" or "security". |
53 |
| - # ---------------------------------------------------------------------------- |
54 |
| - mark-legacy-issue: |
55 |
| - runs-on: ubuntu-latest |
56 |
| - permissions: |
57 |
| - issues: write |
58 |
| - steps: |
59 |
| - - name: Mark legacy issues using stale action |
60 |
| - uses: actions/stale@v9 |
61 |
| - with: |
62 |
| - repo-token: ${{ secrets.GITHUB_TOKEN }} |
63 |
| - ignore-updates: true |
64 |
| - days-before-issue-stale: 730 |
65 |
| - days-before-pr-stale: -1 |
66 |
| - days-before-issue-close: -1 |
67 |
| - days-before-pr-close: -1 |
68 |
| - stale-issue-label: 'legacy' |
69 |
| - stale-issue-message: > |
70 |
| - This issue was created over 2 years ago and is considered legacy. |
71 |
| - Given the extensive changes to the codebase since then, we recommend opening a new issue |
72 |
| - with updated details if this problem still affects you. |
73 |
| - exempt-issue-labels: 'pinned,security' |
74 |
| - debug-only: false |
75 |
| - enable-statistics: true |
76 |
| - remove-stale-when-updated: false |
77 |
| - operations-per-run: 500 |
| 53 | + operations-per-run: 1000 |
78 | 54 |
|
| 55 | + |
0 commit comments