Mark stale issues and pull requests #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto Stale Workflow | |
# This workflow marks and closes inactive issues and PRs quickly to keep the project board clean. | |
# Designed for fast iteration: new features ~2 days, full modules ~10 days. | |
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
# Runs daily at 3:40 UTC | |
- cron: '40 3 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v5 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
# Messages to post on stale items | |
stale-issue-message: | | |
⚠️ This issue has had no activity for 5 days. | |
Please update or it will be automatically closed in 2 days. | |
stale-pr-message: | | |
⚠️ This pull request has had no activity for 5 days. | |
Please update or it will be automatically closed in 2 days. | |
# Labels to mark stale items | |
stale-issue-label: '❌ no-issue-activity' | |
stale-pr-label: '🪦 no-pr-activity' | |
# Fast iteration thresholds | |
days-before-stale: 5 | |
days-before-close: 2 | |
# Only option issues/PRs are considered | |
only-labels: '' | |
# Close stale items instead of leaving them open | |
stale-issue-close: true | |
stale-pr-close: true | |
# Limit number of items processed per run | |
limit: 50 | |
# Debug logs in Actions for troubleshooting | |
debug: false |