-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stale bot #2842
base: master
Are you sure you want to change the base?
Stale bot #2842
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure it works - could you please test it on your repo (set DAYS_BEFORE_STALE
and DAYS_BEFORE_CLOSE
to 1
so it will be quick)? Otherwise looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's only execute it on PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
days-before-stale: ${{ env.DAYS_BEFORE_STALE }} | ||
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }} | ||
operations-per-run: 3000 | ||
exempt-all-milestones: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need it?
remove-stale-when-updated: true | ||
|
||
# PR settings | ||
stale-pr-label: stale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you create this label?
Hi! This pull request hasn't had any activity for a while, so I am | ||
marking it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }} | ||
days unless something changes. Thanks for contributing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This pull request hasn't had any activity for a while, so I am | |
marking it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }} | |
days unless something changes. Thanks for contributing! | |
Hi! This pull request hasn't had any activity for a while, so I am | |
marking it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }} | |
days if it is not updated. Thanks for contributing! |
if: ${{ steps.stale-bot.outputs.staled-issues-prs != '' || steps.stale-bot.outputs.closed-issues-prs != '' }} | ||
run: | | ||
echo "Staled PRs: ${{ steps.stale-bot.outputs.staled-issues-prs }}" | ||
echo "Closed PRs: ${{ steps.stale-bot.outputs.closed-issues-prs }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is possible for one if these values to be none/undefined with the if
you added. But if this is intentional, let's keep it.
Closes #2816
Settings reference: https://github.com/actions/stale?tab=readme-ov-file#all-options
Introduced changes
Checklist
CHANGELOG.md