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

Add workflow for closing stale issues and PRs #2073

Merged
merged 2 commits into from
Jul 22, 2024
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
35 changes: 35 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Close stale issues and PRs

on:
schedule:
- cron: "0 1 * * *"

jobs:
stale:
runs-on: ubuntu-latest

permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 60
days-before-issue-close: 30
days-before-pr-stale: 60
days-before-pr-close: 30
stale-issue-message: >
This issue has been automatically marked as stale because it has been open 60 days with no activity.
Remove stale label or comment or this will be closed in 30 days.
Thank you for your contributions.
close-issue-message: >
This issue has been automatically closed because it has been stalled for 30 days with no activity.
Please comment "/reopen" to reopen it.
stale-pr-message: >
This pull request has been automatically marked as stale because it has been open 60 days with no activity.
Remove stale label or comment or this will be closed in 30 days.
Thank you for your contributions.
close-pr-message: >
This pull request has been automatically closed because it has been stalled for 30 days with no activity.
Please comment "/reopen" to reopen it.
Loading