feat: Add --deps flag to bd create for one-command issue creation
Implements GH-18: Allow creating issues with dependencies in a single command. Changes: - Add --deps flag to bd create command - Support format: 'type:id' or just 'id' (defaults to 'blocks') - Multiple dependencies supported via comma-separated values - Example: bd create "Fix bug" --deps discovered-from:bd-20,blocks:bd-15 - Updated README.md and CLAUDE.md with examples This improves the UX for AI agents by reducing two commands (create + dep add) to a single command, making discovered-from workflows much smoother. Fixes #18 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -313,8 +313,12 @@ Only `blocks` dependencies affect the ready work queue.
|
||||
- **discovered-from**: Use when you discover new work while working on an issue
|
||||
```bash
|
||||
# While working on bd-20, you discover a bug
|
||||
# Old way (two commands):
|
||||
bd create "Fix edge case bug" -t bug -p 1
|
||||
bd dep add bd-21 bd-20 --type discovered-from # bd-21 discovered from bd-20
|
||||
|
||||
# New way (single command with --deps):
|
||||
bd create "Fix edge case bug" -t bug -p 1 --deps discovered-from:bd-20
|
||||
```
|
||||
|
||||
The `discovered-from` type is particularly useful for AI-supervised workflows, where the AI can automatically create issues for discovered work and link them back to the parent task.
|
||||
|
||||
Reference in New Issue
Block a user