From e41a6d7f1fbbfd032831985825a3a653ebf8842e Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Wed, 31 Mar 2021 23:43:56 +0300 Subject: [PATCH 1/3] Fix errors --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e9b530..356146e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ name: "Release" on: push: tags: - - "[v1-9]+.[1-9]+*" + - "[v0-9]+.[0-9]+*" jobs: release_zip_file: From 9a5cf393de4a5f219d54be5e8162526dcf65ffff Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Wed, 31 Mar 2021 23:52:52 +0300 Subject: [PATCH 2/3] Fix errors --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c05d17..4cfac4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,10 +48,10 @@ repos: - id: check-json files: ^(custom_components|tests)/.+\.json$ - id: trailing-whitespace -# Uncomment below lines if you want to follow classical GitHub flow style development + # Uncomment lines below if you want to follow classical GitHub flow style development # - id: no-commit-to-branch # args: -# - --branch=master +# - --branch=dev - repo: local hooks: # Run mypy through our wrapper script in order to get the possible @@ -70,7 +70,7 @@ repos: entry: bin/run-in-env pylint language: system types: [python] - # Uncomment lines below to test code on every commit + # Uncomment lines below to test code on every commit # - id: pytest # name: pytest # entry: bin/run-in-env pytest From 60e8460891cfa631048c7916ac99669f296ddcd9 Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Sat, 3 Apr 2021 16:06:34 +0300 Subject: [PATCH 3/3] Add lock inactive threads action --- .github/workflows/issue-lock.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/issue-lock.yml diff --git a/.github/workflows/issue-lock.yml b/.github/workflows/issue-lock.yml new file mode 100644 index 0000000..337a9ad --- /dev/null +++ b/.github/workflows/issue-lock.yml @@ -0,0 +1,23 @@ +name: Lock Inactive Threads + +on: + schedule: + - cron: '0 5 * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: 30 + issue-lock-comment: > + This issue has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + pr-lock-inactive-days: 30 + pr-lock-comment: > + This pull request has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs.