From 68135806c60d1c9abcaae22863c1b598e70f35e5 Mon Sep 17 00:00:00 2001 From: Brennon Bortz Date: Tue, 16 Dec 2025 00:13:51 -0800 Subject: [PATCH] feat(show): Display status for all dependent issues (#583) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update bd show command to include status information for all dependency types (children, blocks, related, discovered). Issues now display with format [P1 - closed] instead of just [P1]. This provides better visibility into the state of dependent issues without needing to run bd show on each individual issue. Changes: - Updated daemon mode formatting for all dependency types (lines 208, 214, 220, 226) - Updated direct mode formatting for all dependency types (lines 400, 406, 412, 418) - Changed format from "[P%d]" to "[P%d - %s]" with dash separator Example output: Children (9): ↳ pma-an8: Create config.py module [P1 - closed] ↳ pma-38g: Create utils.py module [P1 - open] Blocks (1): ← pma-uzm: Adapt validate_outputs.py [P1 - blocked] 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude --- cmd/bd/show.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cmd/bd/show.go b/cmd/bd/show.go index ca7fd925..8eb9e10f 100644 --- a/cmd/bd/show.go +++ b/cmd/bd/show.go @@ -75,7 +75,7 @@ var showCmd = &cobra.Command{ if jsonOutput { type IssueDetails struct { types.Issue - Labels []string `json:"labels,omitempty"` + Labels []string `json:"labels,omitempty"` Dependencies []*types.IssueWithDependencyMetadata `json:"dependencies,omitempty"` Dependents []*types.IssueWithDependencyMetadata `json:"dependents,omitempty"` } @@ -96,7 +96,7 @@ var showCmd = &cobra.Command{ // Parse response and use existing formatting code type IssueDetails struct { types.Issue - Labels []string `json:"labels,omitempty"` + Labels []string `json:"labels,omitempty"` Dependencies []*types.IssueWithDependencyMetadata `json:"dependencies,omitempty"` Dependents []*types.IssueWithDependencyMetadata `json:"dependents,omitempty"` } @@ -205,25 +205,25 @@ var showCmd = &cobra.Command{ if len(children) > 0 { fmt.Printf("\nChildren (%d):\n", len(children)) for _, dep := range children { - fmt.Printf(" ↳ %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ↳ %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } if len(blocks) > 0 { fmt.Printf("\nBlocks (%d):\n", len(blocks)) for _, dep := range blocks { - fmt.Printf(" ← %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ← %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } if len(related) > 0 { fmt.Printf("\nRelated (%d):\n", len(related)) for _, dep := range related { - fmt.Printf(" ↔ %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ↔ %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } if len(discovered) > 0 { fmt.Printf("\nDiscovered (%d):\n", len(discovered)) for _, dep := range discovered { - fmt.Printf(" ◊ %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ◊ %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } } @@ -397,25 +397,25 @@ var showCmd = &cobra.Command{ if len(children) > 0 { fmt.Printf("\nChildren (%d):\n", len(children)) for _, dep := range children { - fmt.Printf(" ↳ %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ↳ %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } if len(blocks) > 0 { fmt.Printf("\nBlocks (%d):\n", len(blocks)) for _, dep := range blocks { - fmt.Printf(" ← %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ← %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } if len(related) > 0 { fmt.Printf("\nRelated (%d):\n", len(related)) for _, dep := range related { - fmt.Printf(" ↔ %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ↔ %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } if len(discovered) > 0 { fmt.Printf("\nDiscovered (%d):\n", len(discovered)) for _, dep := range discovered { - fmt.Printf(" ◊ %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ◊ %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } } @@ -425,7 +425,7 @@ var showCmd = &cobra.Command{ if len(dependents) > 0 { fmt.Printf("\nBlocks (%d):\n", len(dependents)) for _, dep := range dependents { - fmt.Printf(" ← %s: %s [P%d]\n", dep.ID, dep.Title, dep.Priority) + fmt.Printf(" ← %s: %s [P%d - %s]\n", dep.ID, dep.Title, dep.Priority, dep.Status) } } }