|
1 | | -name: Close stale issues |
| 1 | +name: Close stale issues/prs |
2 | 2 | on: |
3 | 3 | workflow_dispatch: |
4 | 4 | schedule: |
|
8 | 8 | # yamllint disable rule:empty-lines |
9 | 9 | env: |
10 | 10 | CLOSE_MESSAGE: > |
11 | | - Closing after no activity on this issue for 12 months. |
| 11 | + It seems there has been no activity on this issue for a while, |
| 12 | + and it is being closed. If you believe this issue should |
| 13 | + remain open, please leave a comment. |
| 14 | +
|
| 15 | + If you need further assistance or have questions, you can |
| 16 | + also search for similar issues on [Stack Overflow](https://stackoverflow.com/). |
| 17 | +
|
| 18 | + Make sure to look at the README file for the most updated links. |
| 19 | +
|
12 | 20 | WARN_MESSAGE: > |
13 | | - There has been no activity on this issue for 11 months. |
14 | | - The help repository works best when sustained engagement moves conversation forward. |
15 | | - The issue will be closed in 1 month. |
16 | | - If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment. |
| 21 | + It seems there has been no activity on this issue for a while, |
| 22 | + and it is being closed **in 30 days**. If you believe this issue should |
| 23 | + remain open, please leave a comment. |
| 24 | +
|
| 25 | + If you need further assistance or have questions, you can |
| 26 | + also search for similar issues on [Stack Overflow](https://stackoverflow.com/). |
| 27 | +
|
| 28 | + Make sure to look at the README file for the most updated links. |
17 | 29 | # yamllint enable |
18 | 30 |
|
| 31 | +permissions: |
| 32 | + contents: read |
| 33 | + |
19 | 34 | jobs: |
20 | 35 | stale: |
| 36 | + permissions: |
| 37 | + issues: write # for actions/stale to close stale issues |
| 38 | + pull-requests: write # for actions/stale to close stale PRs |
21 | 39 | if: github.repository == 'nodejs/help' |
22 | 40 | runs-on: ubuntu-latest |
23 | 41 | steps: |
24 | | - - uses: actions/stale@v8 |
| 42 | + - uses: actions/stale@v9.0.0 |
25 | 43 | with: |
26 | 44 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
27 | | - days-before-stale: 330 # 11 months |
| 45 | + days-before-stale: 180 |
28 | 46 | days-before-close: 30 |
29 | | - stale-issue-label: stale |
30 | | - close-issue-message: ${{ env.CLOSE_MESSAGE }} |
31 | 47 | stale-issue-message: ${{ env.WARN_MESSAGE }} |
32 | | - # max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits |
33 | | - operations-per-run: 30 |
| 48 | + stale-pr-message: ${{ env.WARN_MESSAGE }} |
| 49 | + close-issue-message: ${{ env.CLOSE_MESSAGE }} |
| 50 | + close-pr-message: ${{ env.CLOSE_MESSAGE }} |
| 51 | + exempt-issue-labels: never-stale |
| 52 | + exempt-pr-labels: never-stale |
| 53 | + operations-per-run: 500 |
34 | 54 | remove-stale-when-updated: true |
0 commit comments