mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
chore(ci): enhance lint-fix workflow for FE (#10448)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
10
.github/workflows/lint-fix.yml
vendored
10
.github/workflows/lint-fix.yml
vendored
@@ -29,6 +29,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
npm install --frozen-lockfile
|
npm install --frozen-lockfile
|
||||||
|
- name: Generate i18n and route types
|
||||||
|
run: |
|
||||||
|
cd frontend
|
||||||
|
npm run make-i18n
|
||||||
|
npx react-router typegen || true
|
||||||
|
|
||||||
- name: Fix frontend lint issues
|
- name: Fix frontend lint issues
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
@@ -45,7 +51,7 @@ jobs:
|
|||||||
git config --local user.email "openhands@all-hands.dev"
|
git config --local user.email "openhands@all-hands.dev"
|
||||||
git config --local user.name "OpenHands Bot"
|
git config --local user.name "OpenHands Bot"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "🤖 Auto-fix frontend linting issues"
|
git commit -m "🤖 Auto-fix frontend linting issues" --no-verify
|
||||||
git push
|
git push
|
||||||
|
|
||||||
# Python lint fixes
|
# Python lint fixes
|
||||||
@@ -87,5 +93,5 @@ jobs:
|
|||||||
git config --local user.email "openhands@all-hands.dev"
|
git config --local user.email "openhands@all-hands.dev"
|
||||||
git config --local user.name "OpenHands Bot"
|
git config --local user.name "OpenHands Bot"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "🤖 Auto-fix Python linting issues"
|
git commit -m "🤖 Auto-fix Python linting issues" --no-verify
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user