-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: Add stale PR action #36336
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
CI: Add stale PR action #36336
Changes from 4 commits
0402f0a
96002e0
98263dd
629f6bd
9765d43
315b7c6
4c492f4
885fefb
17f3dec
2066a98
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,17 @@ | ||
name: "Manage stale pull requests" | ||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: "0 */6 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity. Please update to prevent this from being closed." | ||
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. Not sure if it could be good that the message is a bit friendlier, instead of being straight to the point (I guess this is copied from the action documentation). Like explaining why we close stale PRs, letting the user know that they can always ping us later if they need it reopen... 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. Good point, it does sound a bit blunt. I'll try to use softer wording; open to suggestions as well. |
||
days-before-stale: 30 | ||
days-before-close: -1 | ||
debug-only: 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.
The other workflows are named as "Activate", "CI", "Assign". Not important, but something more compact like "Stale PRs" may look more consistent, and make things easier to find in the workflows list.