feat: add support bundle and improve git error diagnostics#30
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR adds a new “support bundle” collector to capture a diagnostic snapshot of a repository/stack, and upgrades git operation failures to surface underlying stderr/stdout details instead of generic errors.
Changes:
- Added
collectSupportBundle()and related source collectors + a Markdown summary formatter. - Enhanced git helpers (
checkoutBranch,hardResetBranchToRef,fastForwardBranchToRef) to propagate detailed git failure output while preserving special-case behaviors (missing branch / true FF conflict). - Added/updated tests covering support bundle collection behavior, redaction, cycle detection, and improved git error propagation.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/cli/src/lib/support-bundle.ts | Implements support bundle schema + default collectors (repo/stack/doctor/git/history/tooling), redaction, and cycle/path traversal safeguards. |
| packages/cli/src/lib/support-bundle.test.ts | Adds tests for partial collection, Markdown summary formatting, remote credential redaction, cycle handling, and partial git collection. |
| packages/cli/src/lib/git.ts | Improves error diagnostics for checkout/reset/fast-forward by extracting and formatting git command output. |
| packages/cli/src/lib/git.test.ts | Adds regression tests ensuring git helpers return/throw correctly with detailed error output. |
| packages/cli/src/commands/sync.test.ts | Updates sync tests to reflect new fast-forward error semantics and verify root-cause propagation. |
| .gitignore | Ignores .beads/dolt-monitor.pid.lock. |
| .beads/dolt-monitor.pid.lock | Changed in this PR (related to the new ignore rule). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
2923dd5 to
7b784f9
Compare
|
🎉 This PR is included in version 1.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 DubStack