Lock Closed Threads #57
This file contains hidden or 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
| # Workflow to automatically lock closed issues and PRs after 14 days of inactivity to prevent spam. | |
| # For more info: https://github.com/dessant/lock-threads | |
| name: Lock Closed Threads | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" # Run daily at 2:00 AM | |
| workflow_dispatch: | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| lock-threads: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Lock inactive issues and PRs | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| issue-inactive-days: "14" | |
| pr-inactive-days: "14" | |
| issue-comment: "This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs." | |
| pr-comment: "This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related discussions." |