feat(ready): add --type flag for filtering by issue type (gt-ktf3)

Enables bd ready --type=merge-request for MQ integration.
The Engineer can now query for ready merge-requests.

Files changed:
- cmd/bd/ready.go: Add -t/--type flag
- internal/types/types.go: Add Type field to WorkFilter
- internal/rpc/protocol.go: Add Type to ReadyArgs
- internal/storage/sqlite/ready.go: Filter by issue_type column
This commit is contained in:
Steve Yegge
2025-12-19 15:09:18 -08:00
parent 028c269418
commit c84a2404b7
4 changed files with 12 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ type ReadyArgs struct {
Assignee string `json:"assignee,omitempty"`
Unassigned bool `json:"unassigned,omitempty"`
Priority *int `json:"priority,omitempty"`
Type string `json:"type,omitempty"`
Limit int `json:"limit,omitempty"`
SortPolicy string `json:"sort_policy,omitempty"`
Labels []string `json:"labels,omitempty"`