mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-08 21:09:23 +08:00
update
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
||||
[ -z "$FILES" ] && exit 0
|
||||
echo "$FILES" | xargs pnpm format:fix --no-error-on-unmatched-pattern
|
||||
|
||||
# Lint and format staged files
|
||||
echo "$FILES" | xargs pnpm exec oxlint --fix 2>/dev/null || true
|
||||
echo "$FILES" | xargs pnpm exec oxfmt --write 2>/dev/null || true
|
||||
echo "$FILES" | xargs git add
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user