chore(ci): action to autoclose stale issues and prs #2
Workflow file for this run
This file contains 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
name: Stale Issue and PR Cleanup | |
on: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '30 1 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
debug-only: true | |
repo-token: ${{ secrets.STALE_WORKER_TOKEN }} | |
operations-per-run: 1000 | |
days-before-stale: 45 | |
days-before-close: 7 | |
ascending: true | |
stale-issue-label: 'stale' | |
stale-pr-label: 'stale' | |
exempt-issue-labels: 'work-in-progress, ignore-stale' | |
exempt-pr-labels: 'work-in-progress, ignore-stale' | |
close-issue-label: 'closed-stale' | |
close-pr-label: 'closed-stale' | |
stale-issue-message: | | |
This issue is stale because it has been open 45 days with no activity. Remove stale label or this issue | |
be closed in 7 days. | |
close-issue-message: 'This issue was closed because it was stale' | |
stale-pr-message: | | |
This PR is stale because it has been open 45 days with no activity. Remove stale label or this PR will be | |
closed in 7 days. | |
close-pr-message: 'This PR was closed because it has been stale.' | |
exempt-all-milestones: true |