|
1 | | -name: Stale Issues and PRs |
| 1 | +name: Close inactive issues |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | schedule: |
5 | 5 | - cron: '30 1 * * *' |
6 | 6 | workflow_dispatch: |
7 | 7 |
|
8 | | -permissions: |
9 | | - issues: write |
10 | | - pull-requests: write |
11 | | - |
12 | 8 | jobs: |
13 | | - stale: |
| 9 | + close-issues: |
14 | 10 | runs-on: ubuntu-latest |
| 11 | + permissions: |
| 12 | + issues: write |
| 13 | + pull-requests: write |
15 | 14 | steps: |
16 | 15 | - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 |
17 | 16 | with: |
18 | | - days-before-stale: 90 |
19 | | - days-before-close: 14 |
| 17 | + days-before-issue-stale: 90 |
| 18 | + days-before-issue-close: 14 |
20 | 19 | stale-issue-label: stale |
21 | | - stale-pr-label: stale |
22 | | - exempt-issue-labels: pinned,security |
23 | | - exempt-pr-labels: pinned,security |
24 | 20 | 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 | | - If this issue is still relevant, please leave a comment or remove the stale label. |
28 | | - stale-pr-message: > |
29 | | - This pull request has been automatically marked as stale because it has not had |
30 | | - recent activity. It will be closed in 14 days if no further activity occurs. |
31 | | - If this pull request is still relevant, please leave a comment or remove the stale label. |
| 21 | + This issue is stale because it has been open for 90 days with no activity. |
| 22 | + It will be closed in 14 days if no further activity occurs. |
32 | 23 | close-issue-message: > |
33 | | - This issue was closed because it has been inactive for more than 3 months. |
34 | | - Feel free to reopen if it is still relevant. |
35 | | - close-pr-message: > |
36 | | - This pull request was closed because it has been inactive for more than 3 months. |
| 24 | + This issue was closed because it has been inactive for 14 days since being marked as stale. |
37 | 25 | Feel free to reopen if it is still relevant. |
| 26 | + days-before-pr-stale: -1 |
| 27 | + days-before-pr-close: -1 |
| 28 | + exempt-issue-labels: pinned,security |
| 29 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments