Skip to content

Commit b3dcd29

Browse files
avivkellergireeshpunathil
authored andcommitted
meta: update stalebot
1 parent dbc3722 commit b3dcd29

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed
Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Close stale issues
1+
name: Close stale issues/prs
22
on:
33
workflow_dispatch:
44
schedule:
@@ -8,27 +8,47 @@ on:
88
# yamllint disable rule:empty-lines
99
env:
1010
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+
1220
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.
1729
# yamllint enable
1830

31+
permissions:
32+
contents: read
33+
1934
jobs:
2035
stale:
36+
permissions:
37+
issues: write # for actions/stale to close stale issues
38+
pull-requests: write # for actions/stale to close stale PRs
2139
if: github.repository == 'nodejs/help'
2240
runs-on: ubuntu-latest
2341
steps:
24-
- uses: actions/stale@v8
42+
- uses: actions/stale@v9.0.0
2543
with:
2644
repo-token: ${{ secrets.GITHUB_TOKEN }}
27-
days-before-stale: 330 # 11 months
45+
days-before-stale: 180
2846
days-before-close: 30
29-
stale-issue-label: stale
30-
close-issue-message: ${{ env.CLOSE_MESSAGE }}
3147
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
3454
remove-stale-when-updated: true

0 commit comments

Comments
 (0)