name: Lock

# yamllint disable-line rule:truthy
on:
  schedule:
    - cron: "0 * * * *"

jobs:
  lock:
    runs-on: ubuntu-latest
    steps:
      - uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0
        with:
          github-token: ${{ github.token }}
          process-only: "issues, prs"
          issue-lock-inactive-days: "30"
          issue-exclude-created-before: "2020-10-01T00:00:00Z"
          issue-lock-reason: ""
          pr-lock-inactive-days: "1"
          pr-exclude-created-before: "2020-11-01T00:00:00Z"
          pr-lock-reason: ""
