name: 'Lock Closed Threads'

on:
  schedule:
    - cron: '0 0 * * *'

permissions:
  contents: read

jobs:
  lock:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
      - uses: dessant/lock-threads@v5
        with:
          github-token: ${{ github.token }}
          issue-lock-inactive-days: '180'
          issue-lock-labels: 'status:resolved-locked'
          pr-lock-inactive-days: '180'
          pr-lock-labels: 'status:resolved-locked'
