Skip to content
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

Adding GitHub Actions workflow to close stale PRs (Lombiq Technologies: OCORE-154) #15710

Merged
merged 14 commits into from
Apr 17, 2024
25 changes: 25 additions & 0 deletions .github/workflows/close_stale_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Labels PRs without updates for 60 days as stale, then closes them 15 days later.
name: Close stale PRs

on:
schedule:
# Every day at 1:39 AM UTC. A random time to avoid GitHub Actions being overloaded by scheduled workflows.
- cron: '39 1 * * *'

jobs:
close-stale-prs:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-pr-message: >
It seems that this pull request didn't really move for quite a while. Is this something you'd like to
revisit any time soon or should we close?
stale-pr-label: stale
# Not marking issues as stale.
days-before-issue-stale: -1
# Close the PR 15 days after marking it as stale.
days-before-close: 15
close-pr-message: >
Closing this pull request because it has been stale for very long. If you think this is still relevant,
feel free to reopen it.