name: 'Lock threads'

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

permissions: {}
jobs:
  lock:
    permissions:
      issues: write # to lock issues (dessant/lock-threads)
      pull-requests: write # to lock PRs (dessant/lock-threads)

    runs-on: ubuntu-latest
    steps:
      - uses: dessant/lock-threads@v4
        with:
          github-token: ${{ github.token }}
          issue-inactive-days: '90'
          exclude-issue-created-before: ''
          exclude-any-issue-labels: ''
          add-issue-labels: ''
          issue-comment: ''
          issue-lock-reason: 'resolved'
          process-only: ''
