fix(ci): pin prettier 3.9.0 (codegen-check + pre-commit) + regenerate stale api-types.ts #1981
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1981
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/ci-prettier-codegen-pin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repo-wide CI unblock —
openapi-codegen-checkсейчас RED на любом PR с codegen-регеном (не связано с конкретной фичей).Причина (проверено эмпирически)
frontend/src/lib/api-types.tsбыл устаревший — отформатирован старым prettier (3.3–3.6, multi-line union| X\n| null).npx prettier= latest = 3.9.0), и pre-commit (mirrors-prettier@v4.0.0-alpha.8→ обёртка над prettier 3.9.0) сейчас оба дают single-line.npx prettierплавает наlatest→ будущий 3.10/4.x снова сломает гейт.Фикс
frontend/package.json+ lockfile:prettier@3.9.0(точно) в devDependencies..forgejo/workflows/ci.yml(openapi-codegen-check):npx prettier→./node_modules/.bin/prettier(локальный, запиннутый)..pre-commit-config.yaml: prettier-хукadditional_dependencies: ["prettier@3.9.0"]— тот же движок, что в CI.frontend/src/lib/api-types.ts: перегенерён prettier 3.9.0 (6 union multi→single-line, без схемных изменений).Proof
После merge — остальные открытые PR подтянут через merge main.