chore: sync changes from beads-sync

- Close bd-6y5 (getLocalSyncBranch tests)
- Include tombstone export logic fix (bd-81x6)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-07 20:57:58 +11:00
parent 99b2e7e4c3
commit cc89ce4914
2 changed files with 12 additions and 4 deletions

View File

@@ -179,11 +179,19 @@ Examples:
labelsAny = util.NormalizeLabels(labelsAny)
// Build filter
// Include tombstones in export for sync propagation (bd-dve)
filter := types.IssueFilter{IncludeTombstones: true}
// Tombstone export logic (bd-81x6):
// - No status filter → include tombstones for sync propagation
// - --status=tombstone → include only tombstones (filter handles this)
// - --status=<other> → exclude tombstones (user wants specific status)
filter := types.IssueFilter{}
if statusFilter != "" {
status := types.Status(statusFilter)
filter.Status = &status
// Only include tombstones if explicitly filtering for them
filter.IncludeTombstones = (status == types.StatusTombstone)
} else {
// No status filter: include tombstones for sync propagation (bd-dve)
filter.IncludeTombstones = true
}
if assignee != "" {
filter.Assignee = &assignee