-
Build the file list for each affected area:
git diff --name-only origin/main...HEAD -- \
'openmetadata-ui/src/main/resources/ui/src/**/*.{ts,tsx,js,jsx,json}' \
| sed 's|openmetadata-ui/src/main/resources/ui/||' > /tmp/src_files.txt
git diff --name-only origin/main...HEAD -- \
'openmetadata-ui/src/main/resources/ui/playwright/**/*.{ts,tsx,js,jsx}' \
| sed 's|openmetadata-ui/src/main/resources/ui/||' > /tmp/pw_files.txt
git diff --name-only origin/main...HEAD -- \
'openmetadata-ui-core-components/**/*.{ts,tsx,js,jsx,json}' \
| sed 's|openmetadata-ui-core-components/src/main/resources/ui/||' \
> /tmp/core_files.txt
Skip any empty list — CI won't run that area's job either.
-
From the matching working directory (openmetadata-ui/src/main/resources/ui
or openmetadata-ui-core-components/src/main/resources/ui), run the
three-step sequence that CI runs:
cat /tmp/src_files.txt | xargs ./node_modules/.bin/organize-imports-cli
NODE_OPTIONS='--max-old-space-size=8192' cat /tmp/src_files.txt \
| xargs ./node_modules/.bin/eslint --no-error-on-unmatched-pattern --fix
cat /tmp/src_files.txt \
| xargs ./node_modules/.bin/prettier \
--config './.prettierrc.yaml' --ignore-path './.prettierignore' \
--write
Core-components has no organize-imports-cli wired up — skip step 1 there.
-
Check the diff from the repo root:
git status --short
git diff --stat
If git status --short is empty you're done. Otherwise commit the
reformatting diff as its own Fix UI checkstyle commit, matching the
existing history for bot-triggered formatting-only commits — unless the
user asked you to fold it into the in-progress commit.