Skip to content

Close Inactive Issues #121

Close Inactive Issues

Close Inactive Issues #121

name: Close Inactive Issues
on:
schedule:
- cron: "0 0 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 60
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 60 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
# close-pr-message: "This pull request is stale because it has been open for -- days with no activity."
# stale-pr-message: "This pull request was closed because it has been inactive for -- days since being marked as stale."
exempt-issue-labels: "bug,enhancement"
exempt-pr-labels: "bug,enhancement"
repo-token: ${{ secrets.GITHUB_TOKEN }}