Skip to content

Lock inactive threads #1858

Lock inactive threads

Lock inactive threads #1858

name: 'Lock inactive threads'
on:
# Chosen to be just before London wakes up and way past San Francisco's bedtime.
schedule:
- cron: '0 8 * * 1-5' # This is in UTC.
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
github-token: ${{ github.token }}
issue-inactive-days: '7'
issue-lock-reason: 'resolved'
issue-comment: >
Because there has been no activity on this issue for 7 days since it was closed, it has
been automatically locked. Please open a new issue if it requires a follow up.
pr-inactive-days: '14'
pr-lock-reason: 'resolved'
pr-comment: >
Because there has been no activity on this PR for 14 days since it was merged, it has
been automatically locked. Please open a new issue if it requires a follow up.