Skip to content

Lock Closed Threads #57

Lock Closed Threads

Lock Closed Threads #57

Workflow file for this run

# 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."