fix(cli): skip auth when vNext is configured#1996
Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughAdds a changelog entry and updates CI command behavior to support a new vNext mode: CI can load config from a provided working directory, authenticates using vNext-specific API key (LINGO_API_KEY) while making the legacy key optional, and enables parallel execution automatically for vNext projects. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
rect rgba(0,128,0,0.5)
participant Dev as Developer / CLI Caller
end
rect rgba(0,0,255,0.5)
participant CLI as CLI Process
end
rect rgba(255,165,0,0.5)
participant CFG as Config Loader
end
rect rgba(128,0,128,0.5)
participant AUTH as Authenticator
end
rect rgba(255,0,0,0.5)
participant CI as CI Runner
end
Dev->>CLI: invoke `ci` (opts, maybe --workingDirectory, --parallel)
CLI->>CFG: change CWD (if provided) and load config
CFG-->>CLI: return config (incl. vNext flag, keys)
CLI->>AUTH: create authenticator with selected apiUrl/apiKey
AUTH-->>CLI: auth result (token or not)
CLI->>CLI: set env vars (LINGO_API_KEY / LINGODOTDEV_API_KEY, extra mappings)
CLI->>CI: start integration flow (parallel if vNext or --parallel)
CI-->>Dev: CI results
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Summary
Skip legacy auth validation (whoami) in CI when vNext is configured, so vNext projects only need LINGO_API_KEY.
Changes
Testing
Business logic tests added:
Visuals
N/A — no UI changes
Checklist
Closes N/A
Summary by CodeRabbit