-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,42 @@ | ||||||||||||||
name: 'Automation - Stale issues and PRs' | ||||||||||||||
|
||||||||||||||
on: | ||||||||||||||
schedule: | ||||||||||||||
- cron: '0 7 * * 1-5' | ||||||||||||||
|
||||||||||||||
env: | ||||||||||||||
DAYS_BEFORE_STALE: 60 | ||||||||||||||
DAYS_BEFORE_CLOSE: 7 | ||||||||||||||
|
||||||||||||||
jobs: | ||||||||||||||
stale: | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
permissions: | ||||||||||||||
pull-requests: write | ||||||||||||||
steps: | ||||||||||||||
- name: Run Stale Bot | ||||||||||||||
id: stale-bot | ||||||||||||||
uses: actions/stale@v9 | ||||||||||||||
with: | ||||||||||||||
# General settings | ||||||||||||||
days-before-stale: ${{ env.DAYS_BEFORE_STALE }} | ||||||||||||||
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }} | ||||||||||||||
operations-per-run: 3000 | ||||||||||||||
exempt-all-milestones: true | ||||||||||||||
enable-statistics: true # This is only useful if secret ACTIONS_STEP_DEBUG=true | ||||||||||||||
start-date: '2025-01-17' | ||||||||||||||
remove-stale-when-updated: true | ||||||||||||||
|
||||||||||||||
# PR settings | ||||||||||||||
stale-pr-label: stale | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you create this label? |
||||||||||||||
stale-pr-message: | | ||||||||||||||
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! | ||||||||||||||
Comment on lines
+33
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
close-pr-message: false | ||||||||||||||
|
||||||||||||||
- name: Logs | ||||||||||||||
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 }}" | ||||||||||||||
Comment on lines
+39
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
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?