Skip to content

Label inactive issues #63

Label inactive issues

Label inactive issues #63

name: Label inactive issues
on:
schedule:
- cron: "0 1 * * 0"
workflow_dispatch:
env:
DAYS_BEFORE_ISSUE_STALE: 90
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
exempt-issue-labels: "bug,tracking-external-issue,Known Issue,stale"
days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }}
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for ${{ env.DAYS_BEFORE_ISSUE_STALE }} days with no activity."
days-before-pr-stale: -1
days-before-pr-close: -1
operations-per-run: 100
repo-token: ${{ secrets.GITHUB_TOKEN }}