From e7b65be157d33c72329e8fa351bb715919d5503c Mon Sep 17 00:00:00 2001 From: William So Date: Sun, 25 Jan 2026 12:11:42 +0800 Subject: [PATCH 1/3] chore(commitlint): rename config to .commitlintrc.js and simplify rules Replace ESM 'commitlint.config.mjs' with '.commitlintrc.js' and simplify rule severities to numeric values. --- .commitlintrc.js | 9 +++++++++ commitlint.config.mjs | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 .commitlintrc.js delete mode 100644 commitlint.config.mjs diff --git a/.commitlintrc.js b/.commitlintrc.js new file mode 100644 index 0000000..1e6e0fc --- /dev/null +++ b/.commitlintrc.js @@ -0,0 +1,9 @@ +export default { + extends: ["@commitlint/config-conventional"], + rules: { + // Dependabot or we like long headers... + "header-max-length": [0, "always", 0], + // allow long commit bodies (links / long explanations) + "body-max-line-length": [0, "always", 0], + }, +}; diff --git a/commitlint.config.mjs b/commitlint.config.mjs deleted file mode 100644 index 9548119..0000000 --- a/commitlint.config.mjs +++ /dev/null @@ -1,11 +0,0 @@ -import { RuleConfigSeverity } from "@commitlint/types"; - -export default { - extends: ["@commitlint/config-conventional"], - rules: { - // Dependabot or we like long headers... - "header-max-length": [RuleConfigSeverity.Disabled, "always", 0], - // allow long commit bodies (links / long explanations) - "body-max-line-length": [RuleConfigSeverity.Disabled, "always", 0], - }, -}; From 10c2f6bcb8e0cff3b49f6b191d2e0bef043fc353 Mon Sep 17 00:00:00 2001 From: William So Date: Sun, 25 Jan 2026 12:23:19 +0800 Subject: [PATCH 2/3] chore(scripts): remove unnecessary node shebang from copy-test-assets.js --- scripts/copy-test-assets.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/copy-test-assets.js b/scripts/copy-test-assets.js index 9d4eec3..9bed0fb 100644 --- a/scripts/copy-test-assets.js +++ b/scripts/copy-test-assets.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { cp } from "fs/promises"; import path from "path"; From cc0751890ac1b1d5741295c862e8138a48cf347a Mon Sep 17 00:00:00 2001 From: William So Date: Sun, 25 Jan 2026 12:45:05 +0800 Subject: [PATCH 3/3] chore(ci): use ubuntu-slim where Docker is not required; run commitlint without Docker Use ubuntu-slim for non-Docker-requiring jobs (detect-quota, eslint); replace Docker-based commitlint action with node-based yarn dlx invocation. --- .github/workflows/check.yml | 4 ++-- .github/workflows/docker.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 63fafd8..f5dc4ac 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -9,7 +9,7 @@ jobs: # Probe the hosted runner (same flavor as the original try job) so we # can decide whether to use a hosted runner or fall back to # self-hosted. The job should fail if quota is exhausted. - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - name: Quota probe id: quota_probe @@ -28,7 +28,7 @@ jobs: # ESLint job inlined from check-shared-steps.yml needs: detect-quota if: ${{ always() }} - runs-on: ${{ needs.detect-quota.result == 'success' && 'ubuntu-latest' || 'self-hosted' }} + runs-on: ${{ needs.detect-quota.result == 'success' && 'ubuntu-slim' || 'self-hosted' }} continue-on-error: true steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9c5fc31..251bebc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -19,7 +19,7 @@ jobs: # Probe the hosted runner to decide whether to use hosted runners or # fall back to self-hosted. Use the same runner flavor as the original # try job. - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - name: Quota probe id: quota_probe diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78aca68..5a35161 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: detect-quota: # Probe the hosted runner flavor used by release steps so we can fall # back if necessary. - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - name: Quota probe id: quota_probe