feat: improve TUI spinner and fix publish workflow#21
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughRoot command now properly exits with code 1 on connection-check failures (code 0 on success). Spinner test mocks are updated with ChangesError Handling and Exit Codes
Publish Workflow Guard
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Comment |
There was a problem hiding this comment.
Pull request overview
This PR improves CLI status behavior around connection failures and spinner lifecycle validation, while constraining the publish workflow to releases from main.
Changes:
- Root command now exits with a non-zero status when connection checks throw.
- Spinner mocks/tests now cover
fail/warnlifecycle paths. - Publish workflow is restricted to the
mainbranch.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/commands/root.ts |
Tracks connection-check errors and exits with status 1 on failure. |
src/__tests__/show.test.ts |
Adds assertions for spinner lifecycle behavior in show command error paths. |
src/__tests__/logs.test.ts |
Adds fail to the spinner mock used by logs command tests. |
src/__tests__/health.test.ts |
Adds fail to the spinner mock used by health command tests. |
.github/workflows/publish.yml |
Limits the publish job to refs/heads/main. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR introduces several improvements to the TUI spinner and hardens the publish workflow.
Key changes:
Summary by CodeRabbit
Bug Fixes
Chores