Skip to content

Mark stale issues and pull requests #138

Mark stale issues and pull requests

Mark stale issues and pull requests #138

Workflow file for this run

name: Mark stale issues and pull requests
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Mark stale issues and PRs
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Issues configuration
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 if no further activity occurs within 14 days.
If this issue is still relevant, please comment to keep it open.
close-issue-message: |
This issue has been automatically closed due to inactivity.
If you believe this issue is still relevant, please reopen it or create a new issue with updated information.
# Pull requests configuration
days-before-pr-stale: 30
days-before-pr-close: 7
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 if no further activity occurs within 7 days.
If this PR is still relevant, please update it to keep it open.
close-pr-message: |
This pull request has been automatically closed due to inactivity.
If you believe this PR is still relevant, please reopen it or create a new PR with updated changes.
# Labels to exempt from stale marking
exempt-issue-labels: 'pinned,security,bug,enhancement,good first issue,help wanted'
exempt-pr-labels: 'pinned,security,work in progress,blocked'
# Additional configuration
ascending: true
remove-stale-when-updated: true
# Only check issues/PRs, not both at once for performance
only-labels: ''
any-of-labels: ''
# Debug mode (set to true for testing)
debug-only: false