Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Decrease stalebot interval per collab summit discussion #4270

Merged
merged 3 commits into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,27 @@ on:
# yamllint disable rule:empty-lines
env:
CLOSE_MESSAGE: >
There has been no activity on this issue
and it is being closed. If you feel closing this issue is not the
right thing to do, please leave a comment.
Closing after no activity on this issue for 12 months.
WARN_MESSAGE: >
There has been no activity on this issue for
3 years and it may no longer be relevant.
It will be closed 1 month after the last non-automated comment.
There has been no activity on this issue for 11 months.
The help repository works best when sustained engagement moves conversation forward.
The issue will be closed in 1 month.
If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment.
# yamllint enable

jobs:
stale:
if: github.repository == 'nodejs/help'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
- uses: actions/stale@a20b814fb01b71def3bd6f56e7494d667ddf28da #4.1.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# 3 years. this number is chosen to target around 25 initial issues, with then a natural flow as time progresses
days-before-stale: 1095
days-before-stale: 330 # 11 months
days-before-close: 30
stale-issue-label: stale
close-issue-message: ${{ env.CLOSE_MESSAGE }}
stale-issue-message: ${{ env.WARN_MESSAGE }}
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
operations-per-run: 30
remove-stale-when-updated: true
remove-stale-when-updated: true