Skip to content

Add stale bot #169

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

Merged
merged 1 commit into from
Jan 1, 2025
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
48 changes: 48 additions & 0 deletions .github/workflows/stale-pr-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Mark inactive issues and PRs as stale
# GitHub action based on https://github.com/actions/stale

name: 'Close stale issues and PRs'
on:
schedule:
# Execute every day
- cron: '0 0 * * *'

permissions:
actions: write
issues: write
pull-requests: write

jobs:
close-pending:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
# GLOBAL ------------------------------------------------------------
# Exempt any PRs or issues already added to a milestone
exempt-all-milestones: true
# Days until issues or pull requests are labelled as stale
days-before-stale: 60

# ISSUES ------------------------------------------------------------
# Issues will be closed after 90 days of inactive (60 to mark as stale + 30 to close)
days-before-issue-close: 30
stale-issue-message: >
Hello, this issue has been inactive for 60 days, so we're marking it as stale.
If you would like to continue this discussion, please comment within the next 30 days or we'll close the issue.
close-issue-message: >
Hello, as this issue has been inactive for 90 days, we're closing the issue.
If you would like to resume the discussion, please create a new issue.
exempt-issue-labels: keep-open

# PULL REQUESTS -----------------------------------------------------
# PRs will be closed after 90 days of inactive (60 to mark as stale + 30 to close)
days-before-pr-close: 30
stale-pr-message: >
Hello, this pull request has been inactive for 60 days, so we're marking it as stale.
If you would like to continue working on this pull request, please make an update within the next 30 days, or we'll close the pull request.
close-pr-message: >
Hello, as this pull request has been inactive for 90 days, we're closing this pull request.
We always welcome contributions, and if you would like to continue, please open a new pull request.
exempt-pr-labels: keep-open

Loading