From efced0e114e40e780e642488748f175ae759a8ac Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:26:00 +0800 Subject: [PATCH 1/3] ci: add workflow lint and whitespace checks Co-Authored-By: Codex --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d2c42f..08690db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,28 @@ permissions: contents: read jobs: + actionlint: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v6 + - name: Actionlint + uses: docker://rhysd/actionlint:1.7.12 + test: runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v6 + - name: Check whitespace + run: | + set -euo pipefail + if [ "${{ github.event_name }}" = "pull_request" ]; then + git fetch --no-tags --depth=1 origin "${{ github.base_ref }}" + git diff --check "origin/${{ github.base_ref }}...HEAD" + else + git diff-tree --check --no-commit-id --root -r HEAD + fi - uses: actions/setup-python@v6 with: python-version: "3.12" From caf2d89347652749bf4fc26aaca0d5279a14ecb1 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:29:31 +0800 Subject: [PATCH 2/3] ci: fetch full history for whitespace checks Co-Authored-By: Codex --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08690db..2313321 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Check whitespace run: | set -euo pipefail From 6a55fbc96f8af5eb887d2cd1145b8b0c9098dc47 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:35:52 +0800 Subject: [PATCH 3/3] chore: retrigger branch protection checks Co-Authored-By: Codex