Add label management and import collision detection
- Implement 'bd label' command with add/remove/list subcommands - Add import --dry-run and --resolve-collisions for safe merges - Support label filtering in 'bd list' and 'bd create' - Update AGENTS.md with collision handling workflow - Extends bd-224 (data consistency) and bd-84 (import reliability)
This commit is contained in:
@@ -92,6 +92,16 @@ Output to stdout by default, or use -o flag for file output.`,
|
||||
issue.Dependencies = allDeps[issue.ID]
|
||||
}
|
||||
|
||||
// Populate labels for all issues
|
||||
for _, issue := range issues {
|
||||
labels, err := store.GetLabels(ctx, issue.ID)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error getting labels for %s: %v\n", issue.ID, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
issue.Labels = labels
|
||||
}
|
||||
|
||||
// Open output
|
||||
out := os.Stdout
|
||||
var tempFile *os.File
|
||||
|
||||
Reference in New Issue
Block a user