Skip to content

Handling stale issues #398

Handling stale issues

Handling stale issues #398

Workflow file for this run

name: Handling stale issues
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
env:
stale-days: 30
close-days: 14
stale-label: stale
stale-exempt-label: stale-exempt
only-label: more info needed
steps:
- uses: actions/[email protected]
with:
stale-issue-label: ${{ env.stale-label }}
exempt-issue-labels: ${{ env.stale-exempt-label }}
only-labels: ${{ env.only-label }}
days-before-pr-stale: -1
days-before-pr-close: -1
days-before-stale: ${{ env.stale-days }}
stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days and being labeled '${{ env.only-label }}'. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be closed in ${{ env.close-days }} days. If you would like to make this issue exempt from getting stale, please provide the information needed for the maintainers to understand the issue better."
days-before-close: ${{ env.close-days }}
close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'."
operations-per-run: 200