Skip to content

Close Stale Issues and PRs #63

Close Stale Issues and PRs

Close Stale Issues and PRs #63

Workflow file for this run

name: Close Stale Issues and PRs
on:
schedule:
# Run daily at midnight UTC
- cron: '0 0 * * *'
# Allow manual trigger
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
name: Mark and Close Stale Items
runs-on: ubuntu-latest
steps:
- name: Close stale issues and PRs
uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Issues
days-before-issue-stale: 60
days-before-issue-close: 14
stale-issue-label: 'stale'
stale-issue-message: |
This issue has been automatically marked as stale because it
has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions!
close-issue-message: |
This issue has been automatically closed due to inactivity.
If you believe this is still relevant, please reopen with
updated information.
# Pull Requests
days-before-pr-stale: 45
days-before-pr-close: 14
stale-pr-label: 'stale'
stale-pr-message: |
This pull request has been automatically marked as stale
because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions!
close-pr-message: |
This pull request has been automatically closed due to
inactivity.
If you would like to continue with this PR, please reopen
and update it.
# Exempt labels
exempt-issue-labels: 'pinned,security,help-wanted,good-first-issue'
exempt-pr-labels: 'pinned,security,work-in-progress'
# Other settings
operations-per-run: 100
remove-stale-when-updated: true