diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000..896188ce9 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,20 @@ +name: Lock + +on: + schedule: + - cron: "0 * * * *" + +jobs: + lock: + if: github.repository_owner == 'home-assistant' + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v5.0.1 + with: + github-token: ${{ github.token }} + issue-inactive-days: "30" + exclude-issue-created-before: "2025-01-01T00:00:00Z" + issue-lock-reason: "" + pr-inactive-days: "7" + exclude-pr-created-before: "2025-01-01T00:00:00Z" + pr-lock-reason: ""