File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ go vet ./...
1111go test ./...
1212
1313# Frontend lint/format (if dependencies installed)
14- if [ -f " frontend/package.json" ]; then
15- if command -v pnpm > /dev/null 2>&1 && [ -d " frontend/node_modules" ]; then
16- echo " [pre-commit] Running frontend lint and format checks"
17- (cd frontend && pnpm -s lint && pnpm -s format:check)
18- else
19- echo " [pre-commit] Skipping frontend lint: pnpm not available or dependencies not installed"
20- fi
14+ if command -v pnpm > /dev/null 2>&1 && [ -d " frontend/node_modules" ]; then
15+ echo " [pre-commit] Running frontend lint and format checks"
16+ (cd frontend && pnpm -s lint && pnpm -s format:check)
17+ else
18+ echo " [pre-commit] Skipping frontend lint: pnpm not available or dependencies not installed"
2119fi
2220
2321echo " [pre-commit] All checks passed."
Original file line number Diff line number Diff line change 55 branches : [ main ]
66 tags :
77 - ' v*'
8- paths :
8+ paths : &trigger_paths
99 - ' **.go'
1010 - ' go.mod'
1111 - ' go.sum'
12- - ' ../../ frontend/**'
12+ - ' frontend/**'
1313 - ' ent/**'
1414 - ' Dockerfile'
1515 - ' .github/workflows/ci.yml'
1616 pull_request :
1717 branches : [ main ]
18- paths :
19- - ' **.go'
20- - ' go.mod'
21- - ' go.sum'
22- - ' frontend/**'
23- - ' ent/**'
24- - ' .github/workflows/ci.yml'
18+ paths : *trigger_paths
2519
2620concurrency :
2721 group : ${{ github.workflow }}-${{ github.ref }}
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ node_modules/
6565npm-debug.log *
6666yarn-debug.log *
6767yarn-error.log *
68+ pnpm-debug.log *
69+ lerna-debug.log *
70+ * .local
6871
6972# Frontend build
7073frontend /dist /
Original file line number Diff line number Diff line change 163163 },
164164 "/auth/device/activate" : {
165165 "post" : {
166- "description" : " Authorize a CLI device code using the current web user session" ,
166+ "description" : " Authorize a CLI device code using the current frontend user session" ,
167167 "consumes" : [
168168 " application/json"
169169 ],
Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ paths:
924924 post :
925925 consumes :
926926 - application/json
927- description : Authorize a CLI device code using the current web user session
927+ description : Authorize a CLI device code using the current frontend user session
928928 parameters :
929929 - description : Device activation request
930930 in : body
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments