feat: add --parent flag to bd list command (bd-yqhh)
Filters issues by parent issue ID using parent-child dependencies. Example: bd list --parent=bd-xyz --status=open Changes: - Add ParentID field to IssueFilter type - Add --parent flag to list command - Forward parent filter through RPC - Implement filtering in SQLite and memory storage 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -571,6 +571,20 @@ func (m *MemoryStorage) SearchIssues(ctx context.Context, query string, filter t
|
||||
}
|
||||
}
|
||||
|
||||
// Parent filtering (bd-yqhh): filter children by parent issue
|
||||
if filter.ParentID != nil {
|
||||
isChild := false
|
||||
for _, dep := range m.dependencies[issue.ID] {
|
||||
if dep.Type == types.DepParentChild && dep.DependsOnID == *filter.ParentID {
|
||||
isChild = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !isChild {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
// Copy issue and attach metadata
|
||||
issueCopy := *issue
|
||||
if deps, ok := m.dependencies[issue.ID]; ok {
|
||||
|
||||
Reference in New Issue
Block a user