Skip to content

Close Stale Issues

Close Stale Issues #34

name: Close Stale Issues
on:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
stale-bot:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 23
days-before-pr-stale: -1 # deactivate the action for PRs
days-before-close: 7
stale-issue-message: |
Hi,
This issue has not received any update in the last 3 weeks, and will automatically be closed in 7 days if it does not receive any activity by then.
If you find the [community forum](https://discuss.hashicorp.com/c/packer) to be more helpful or if you've found the answer to your question elsewhere please feel free to post a response and close the issue.
only-labels: needs-reply