feat(cli): add bd pin/unpin commands (bd-iea)
Add pin.go and unpin.go to cmd/bd/ for managing pinned issues. - bd pin <id> sets Pinned=true on an issue - bd unpin <id> sets Pinned=false on an issue Also adds Pinned field support to RPC UpdateArgs for daemon mode. 🤝 Slit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -103,6 +103,8 @@ type UpdateArgs struct {
|
||||
RelatesTo *string `json:"relates_to,omitempty"` // JSON array of related issue IDs
|
||||
DuplicateOf *string `json:"duplicate_of,omitempty"` // Canonical issue ID if duplicate
|
||||
SupersededBy *string `json:"superseded_by,omitempty"` // Replacement issue ID if obsolete
|
||||
// Pinned field (bd-iea)
|
||||
Pinned *bool `json:"pinned,omitempty"` // If true, issue is a persistent context marker
|
||||
}
|
||||
|
||||
// CloseArgs represents arguments for the close operation
|
||||
|
||||
@@ -97,6 +97,10 @@ func updatesFromArgs(a UpdateArgs) map[string]interface{} {
|
||||
if a.SupersededBy != nil {
|
||||
u["superseded_by"] = *a.SupersededBy
|
||||
}
|
||||
// Pinned field (bd-iea)
|
||||
if a.Pinned != nil {
|
||||
u["pinned"] = *a.Pinned
|
||||
}
|
||||
return u
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user