From 5aa59401476eb93c02620d1e4ad507bc44d6f512 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Tue, 21 Oct 2025 22:18:06 -0700 Subject: [PATCH] Add multi-ID support to update, show, and label commands Implements GitHub issue #58: Allow multiple issue IDs for batch operations. Changes: - update: Now accepts multiple IDs for batch status/priority updates - show: Displays multiple issues with separators between them - label add/remove: Apply labels to multiple issues at once - All commands return arrays in JSON mode for consistency Commands already supporting multiple IDs: - close (already implemented) - reopen (already implemented) Updated AGENTS.md with correct multi-ID syntax examples. Amp-Thread-ID: https://ampcode.com/threads/T-518a7593-6e16-4b08-8cf8-741992b5e3b6 Co-authored-by: Amp --- AGENTS.md | 22 +++-- cmd/bd/label.go | 102 +++++++++++++++++--- cmd/bd/main.go | 246 +++++++++++++++++++++++++++++------------------- 3 files changed, 251 insertions(+), 119 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a7c52d87..8b288a15 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -110,8 +110,9 @@ bd create "Issue title" -t bug -p 1 -l bug,critical --json # Create multiple issues from markdown file bd create -f feature-plan.md --json -# Update issue status -bd update --status in_progress --json +# Update one or more issues +bd update [...] --status in_progress --json +bd update [...] --priority 1 --json # Link discovered work (old way) bd dep add --type discovered-from @@ -119,23 +120,26 @@ bd dep add --type discovered-from # Create and link in one command (new way) bd create "Issue title" -t bug -p 1 --deps discovered-from: --json -# Label management -bd label add