Skip to content

Close stale issues and PRs #1

Close stale issues and PRs

Close stale issues and PRs #1

# Close stale issues and pull requests (uses actions/stale@v4 with GITHUB_TOKEN)
on:
schedule:
- cron: "0 0 * * 1" # weekly run: every Monday at 00:00 UTC
workflow_dispatch:
permissions:
issues: write
pull-requests: write
name: Close stale issues and PRs
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Run stale action
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "Hey there, we've marked this pull request as stale because there's no recent activity on it. This label helps us identify long-standing issues in our repo (and not used to auto-close issues)."
stale-pr-message: "Hey there, we've marked this pull request as stale because there's no recent activity on it. This label is helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant)."
days-before-stale: 35
# setting to a negative number means they'll never be autoclosed
days-before-close: -1
operations-per-run: 100