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 <amp@ampcode.com>
This commit is contained in:
22
AGENTS.md
22
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 <id> --status in_progress --json
|
||||
# Update one or more issues
|
||||
bd update <id> [<id>...] --status in_progress --json
|
||||
bd update <id> [<id>...] --priority 1 --json
|
||||
|
||||
# Link discovered work (old way)
|
||||
bd dep add <discovered-id> <parent-id> --type discovered-from
|
||||
@@ -119,23 +120,26 @@ bd dep add <discovered-id> <parent-id> --type discovered-from
|
||||
# Create and link in one command (new way)
|
||||
bd create "Issue title" -t bug -p 1 --deps discovered-from:<parent-id> --json
|
||||
|
||||
# Label management
|
||||
bd label add <id> <label> --json
|
||||
bd label remove <id> <label> --json
|
||||
# Label management (supports multiple IDs)
|
||||
bd label add <id> [<id>...] <label> --json
|
||||
bd label remove <id> [<id>...] <label> --json
|
||||
bd label list <id> --json
|
||||
bd label list-all --json
|
||||
|
||||
# Filter issues by label
|
||||
bd list --label bug,critical --json
|
||||
|
||||
# Complete work
|
||||
bd close <id> --reason "Done" --json
|
||||
# Complete work (supports multiple IDs)
|
||||
bd close <id> [<id>...] --reason "Done" --json
|
||||
|
||||
# Reopen closed issues (supports multiple IDs)
|
||||
bd reopen <id> [<id>...] --reason "Reopening" --json
|
||||
|
||||
# Show dependency tree
|
||||
bd dep tree <id>
|
||||
|
||||
# Get issue details
|
||||
bd show <id> --json
|
||||
# Get issue details (supports multiple IDs)
|
||||
bd show <id> [<id>...] --json
|
||||
|
||||
# Rename issue prefix (e.g., from 'knowledge-work-' to 'kw-')
|
||||
bd rename-prefix kw- --dry-run # Preview changes
|
||||
|
||||
Reference in New Issue
Block a user