From c5d487f669f41d9a3c0a9a5e31506b0b998b032c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 31 Oct 2026 04:30:13 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=94=A7=20chore(prek):=20allow=20multi?= =?UTF-8?q?-document=20YAML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configure check-yaml with --allow-multiple-documents so pnpm lockfiles remain valid when they contain multiple YAML documents. Co-authored-by: Zhan Rongrui --- prek.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prek.toml b/prek.toml index 6f7c9a3..9acb53e 100644 --- a/prek.toml +++ b/prek.toml @@ -5,7 +5,7 @@ hooks = [ { id = "check-added-large-files" }, { id = "check-case-conflict" }, { id = "check-executables-have-shebangs" }, - { id = "check-yaml" }, + { id = "check-yaml", args = ["--allow-multiple-documents"] }, { id = "check-json" }, { id = "check-merge-conflict" }, { id = "destroyed-symlinks" }, From 66ddfda0ab06831cdd0dc45ac163198efe24930e Mon Sep 17 00:00:00 2001 From: zrr1999 <2742392377@qq.com> Date: Sun, 1 Nov 2026 12:29:26 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=94=A7=20chore(ci):=20refresh=20hooks?= =?UTF-8?q?=20and=20restore=20PR=20title=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-pr-checks.yml | 3 +- .github/workflows/ci-site-checks.yml | 4 +-- .github/workflows/ci-static-checks.yml | 6 ++-- prek.toml | 41 +++++++++----------------- 4 files changed, 21 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci-pr-checks.yml b/.github/workflows/ci-pr-checks.yml index a422a17..8ac7469 100644 --- a/.github/workflows/ci-pr-checks.yml +++ b/.github/workflows/ci-pr-checks.yml @@ -20,9 +20,10 @@ jobs: - uses: actions/checkout@v6 - name: Check PR title - uses: zrr1999/zendev-actions/validate-title@9013ad848b32d287d0258fdbc9f51e350b8eca33 + uses: zendev-lab/zendev/actions/validate-title@f3b5d8e7c55524e34be316c9824275ad43e8de56 # v0.5.0 with: text: ${{ github.event.pull_request.title }} + profile: zendev body: name: PR body diff --git a/.github/workflows/ci-site-checks.yml b/.github/workflows/ci-site-checks.yml index af597c5..55e8182 100644 --- a/.github/workflows/ci-site-checks.yml +++ b/.github/workflows/ci-site-checks.yml @@ -22,13 +22,13 @@ jobs: uses: actions/checkout@v6 - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@f520eceda224fe1a4aed5a2a27a194379a409996 # v6 with: version: 10.33.0 run_install: false - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: node-version: "22" cache: pnpm diff --git a/.github/workflows/ci-static-checks.yml b/.github/workflows/ci-static-checks.yml index 323b8c6..6665a51 100644 --- a/.github/workflows/ci-static-checks.yml +++ b/.github/workflows/ci-static-checks.yml @@ -24,13 +24,13 @@ jobs: fetch-depth: 0 - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@f520eceda224fe1a4aed5a2a27a194379a409996 # v6 with: version: 10.33.0 run_install: false - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: node-version: "22" cache: pnpm @@ -50,7 +50,7 @@ jobs: - name: Install lychee uses: taiki-e/install-action@v2 with: - tool: lychee@0.15.1 + tool: lychee@0.24.2 - name: Run prek uses: j178/prek-action@v2 diff --git a/prek.toml b/prek.toml index 9acb53e..9390547 100644 --- a/prek.toml +++ b/prek.toml @@ -1,3 +1,6 @@ +default_install_hook_types = ["pre-commit", "commit-msg"] +default_stages = ["pre-commit"] + [[repos]] repo = "https://github.com/pre-commit/pre-commit-hooks" rev = "v6.0.0" @@ -16,7 +19,7 @@ hooks = [ [[repos]] repo = "https://github.com/tombi-toml/tombi-pre-commit" -rev = "v0.7.27" +rev = "v1.9.0" hooks = [ { id = "tombi-format", exclude = '^pnpm-lock\.yaml$' }, { id = "tombi-lint" }, @@ -24,7 +27,7 @@ hooks = [ [[repos]] repo = "https://github.com/rvben/rumdl-pre-commit" -rev = "v0.1.63" +rev = "v0.3.0" hooks = [ { id = "rumdl-fmt", exclude = '^\.github/styles/' }, ] @@ -38,30 +41,21 @@ hooks = [ [[repos]] repo = "https://github.com/crate-ci/typos" -rev = "v1.33.1" +rev = "v1.51.1" hooks = [ - { - id = "typos", - args = ["--force-exclude"], - exclude = '^\.github/styles/' - }, + { id = "typos", args = ["--force-exclude"], exclude = '^\.github/styles/' }, ] [[repos]] repo = "https://github.com/vale-cli/vale" -rev = "v3.14.1" +rev = "v3.25.1" hooks = [ - { - id = "vale", - args = ["--minAlertLevel=error"], - files = '\.md$', - exclude = '^\.github/styles/' - }, + { id = "vale", args = ["--minAlertLevel=error"], files = '\.md$', exclude = '^\.github/styles/' }, ] [[repos]] repo = "https://github.com/lycheeverse/lychee" -rev = "v0.15.1" +rev = "lychee-v0.24.2" hooks = [ { id = "lychee", @@ -76,21 +70,14 @@ hooks = [ ] [[repos]] -repo = "https://github.com/zrr1999/zendev" -rev = "v0.0.5" +repo = "https://github.com/zendev-lab/zendev" +rev = "v0.5.0" hooks = [ - { id = "zendev-commit-msg" }, + { id = "zendev-message-check", args = ["--profile", "zendev"], stages = ["commit-msg"] }, ] [[repos]] repo = "local" hooks = [ - { - id = "pnpm-check", - name = "pnpm-check", - entry = "pnpm check", - language = "system", - pass_filenames = false, - files = '^(package\.json|pnpm-workspace\.yaml|apps/[^/]+/(astro\.config\.(mjs|ts)|package\.json|tsconfig\.json|src/.*\.(astro|js|ts|md)))$' - }, + { id = "pnpm-check", name = "pnpm-check", entry = "pnpm check", language = "system", pass_filenames = false, files = '^(package\.json|pnpm-workspace\.yaml|apps/[^/]+/(astro\.config\.(mjs|ts)|package\.json|tsconfig\.json|src/.*\.(astro|js|ts|md)))$' }, ] From c5d0a4eff64c2a425c9fb953e8edc02ab0cd0a75 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 1 Nov 2026 04:31:54 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=94=A7=20chore(prek):=20allow=20multi?= =?UTF-8?q?-document=20YAML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configure check-yaml with --allow-multiple-documents so pnpm lockfiles remain valid when they contain multiple YAML documents. Co-authored-by: Zhan Rongrui --- prek.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prek.toml b/prek.toml index 8ea395c..dc604b7 100644 --- a/prek.toml +++ b/prek.toml @@ -8,7 +8,7 @@ hooks = [ { id = "check-added-large-files" }, { id = "check-case-conflict" }, { id = "check-executables-have-shebangs" }, - { id = "check-yaml" }, + { id = "check-yaml", args = ["--allow-multiple-documents"] }, { id = "check-json" }, { id = "check-merge-conflict" }, { id = "destroyed-symlinks" }, From 307cc74f502a637c4bbe555de69a8ec48f87a2ab Mon Sep 17 00:00:00 2001 From: zrr1999 <2742392377@qq.com> Date: Sun, 1 Nov 2026 12:38:06 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20validate=20bodies?= =?UTF-8?q?=20against=20the=20repository=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/policy-pr-checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/policy-pr-checks.yml b/.github/workflows/policy-pr-checks.yml index 1705abf..1df1d4e 100644 --- a/.github/workflows/policy-pr-checks.yml +++ b/.github/workflows/policy-pr-checks.yml @@ -37,3 +37,4 @@ jobs: uses: zendev-lab/zendev/actions/validate-body@f3b5d8e7c55524e34be316c9824275ad43e8de56 # v0.5.0 with: body: ${{ github.event.pull_request.body }} + template: .github/pull_request_template.md