|
1 | | -name: 'Mark stale issues' |
2 | | - |
| 1 | +name: Mark Stale Issues |
3 | 2 | on: |
4 | 3 | schedule: |
5 | 4 | - cron: '0 1 * * *' |
6 | 5 |
|
7 | 6 | jobs: |
8 | | - stale-issues: |
9 | | - runs-on: ubuntu-latest |
| 7 | + stale: |
| 8 | + uses: llm-d/llm-d-infra/.github/workflows/reusable-stale.yml@main |
10 | 9 | permissions: |
11 | 10 | issues: write |
12 | 11 | pull-requests: write |
13 | | - steps: |
14 | | - - name: 'Mark stale issues and PRs' |
15 | | - uses: actions/stale@v10 |
16 | | - with: |
17 | | - days-before-issue-stale: 90 |
18 | | - days-before-pr-stale: 21 |
19 | | - days-before-close: -1 |
20 | | - stale-issue-label: 'lifecycle/stale' |
21 | | - exempt-issue-labels: 'lifecycle/rotten' |
22 | | - stale-issue-message: 'This issue is marked as stale after 90d of inactivity. After an additional 30d of inactivity (15d to become rotten, then 15d more), it will be closed. To prevent this issue from being closed, add a comment or remove the `lifecycle/stale` label.' |
23 | | - stale-pr-label: 'lifecycle/stale' |
24 | | - exempt-pr-labels: 'lifecycle/rotten' |
25 | | - stale-pr-message: 'This PR is marked as stale after 21d of inactivity. After an additional 14d of inactivity (7d to become rotten, then 7d more), it will be closed. To prevent this PR from being closed, add a comment or remove the `lifecycle/stale` label.' |
26 | | - |
27 | | - - name: 'Mark items rotten' |
28 | | - uses: actions/stale@v10 |
29 | | - with: |
30 | | - days-before-issue-stale: 15 |
31 | | - days-before-pr-stale: 7 |
32 | | - days-before-close: -1 |
33 | | - stale-issue-label: 'lifecycle/rotten' |
34 | | - stale-pr-label: 'lifecycle/rotten' |
35 | | - only-labels: 'lifecycle/stale' |
36 | | - labels-to-remove-when-stale: 'lifecycle/stale' |
37 | | - |
38 | | - - name: 'Close rotten items' |
39 | | - uses: actions/stale@v10 |
40 | | - with: |
41 | | - days-before-stale: -1 |
42 | | - days-before-issue-close: 15 |
43 | | - days-before-pr-close: 7 |
44 | | - stale-issue-label: 'lifecycle/rotten' |
45 | | - stale-issue-message: 'This issue is being closed after 120d of inactivity.' |
46 | | - stale-pr-label: 'lifecycle/rotten' |
47 | | - stale-pr-message: 'This PR is being closed after 35d of inactivity.' |
0 commit comments