Skip to content

feat: add support bundle and improve git error diagnostics#30

Merged
dubscode merged 1 commit intomainfrom
feat/support-bundle
Mar 13, 2026
Merged

feat: add support bundle and improve git error diagnostics#30
dubscode merged 1 commit intomainfrom
feat/support-bundle

Conversation

@dubscode
Copy link
Contributor

@dubscode dubscode commented Mar 12, 2026


🥞 DubStack

Copilot AI review requested due to automatic review settings March 12, 2026 23:54
@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dubstack Ready Ready Preview, Comment Mar 13, 2026 0:11am

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dubscode dubscode force-pushed the feat/support-bundle branch from 2923dd5 to 7b784f9 Compare March 13, 2026 00:10
@dubscode dubscode merged commit b74076a into main Mar 13, 2026
8 checks passed
@dubscode dubscode deleted the feat/support-bundle branch March 13, 2026 00:23
@github-actions
Copy link

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants