Merge polecat/Morsov: exclude pinned from bd ready

This commit is contained in:
Steve Yegge
2025-12-19 01:28:26 -08:00
2 changed files with 258 additions and 230 deletions

View File

@@ -12,8 +12,11 @@ import (
// GetReadyWork returns issues with no open blockers
// By default, shows both 'open' and 'in_progress' issues so epics/tasks
// ready to close are visible (bd-165)
// Excludes pinned issues which are persistent anchors, not actionable work (bd-92u)
func (s *SQLiteStorage) GetReadyWork(ctx context.Context, filter types.WorkFilter) ([]*types.Issue, error) {
whereClauses := []string{}
whereClauses := []string{
"i.pinned = 0", // Exclude pinned issues (bd-92u)
}
args := []interface{}{}
// Default to open OR in_progress if not specified (bd-165)