From a6691aa00fe2d78e2443ba6b3b021dad548cf224 Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 11 Aug 2025 16:50:15 -0700 Subject: [PATCH] ci: Add auto-fix linting step for generated API types - Add ESLint validation with auto-fix to registry and manager type generation workflows - Ensures generated files meet code standards and automatically fixes any issues - Uses --no-ignore --fix flags to lint and fix specific files despite ESLint ignore patterns Co-authored-by: Qwen-Coder --- .github/workflows/update-manager-types.yaml | 2 +- .github/workflows/update-registry-types.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-manager-types.yaml b/.github/workflows/update-manager-types.yaml index 63844ad37..1c6ae676b 100644 --- a/.github/workflows/update-manager-types.yaml +++ b/.github/workflows/update-manager-types.yaml @@ -64,7 +64,7 @@ jobs: - name: Lint generated types run: | echo "Linting generated ComfyUI-Manager API types..." - npx eslint --no-ignore ./src/types/generatedManagerTypes.ts + npx eslint --no-ignore --fix ./src/types/generatedManagerTypes.ts - name: Check for changes id: check-changes diff --git a/.github/workflows/update-registry-types.yaml b/.github/workflows/update-registry-types.yaml index 93e6be0c0..b9d34d15f 100644 --- a/.github/workflows/update-registry-types.yaml +++ b/.github/workflows/update-registry-types.yaml @@ -64,7 +64,7 @@ jobs: - name: Lint generated types run: | echo "Linting generated Comfy Registry API types..." - npx eslint --no-ignore ./src/types/comfyRegistryTypes.ts + npx eslint --no-ignore --fix ./src/types/comfyRegistryTypes.ts - name: Check for changes id: check-changes