Answer architecture round 1: 0 🔴, 2 🟡; name the next release's test, state both cases of the plan reader, keep one release formatter

This commit is contained in:
2026-10-18 10:37:48 +02:00
parent 83701e20aa
commit ab081dd33f
6 changed files with 15 additions and 14 deletions
+1 -5
View File
@@ -5,7 +5,7 @@ import re
from chunk_pick import chunk_item, LastCut
from failure import Failure
from chunk_preflight.gathered import Forge, NoItem, Plan
from todo_table import item_details, items
from todo_table import item_details, items, version
# The command each forge's CLI lists pull requests with; pulls_command adds the flags that pick their rows and fields.
PULLS_LIST: dict[Forge, tuple[str, ...]] = {"gh": ("gh", "pr", "list"), "tea": ("tea", "pulls", "list")}
@@ -40,10 +40,6 @@ def planned(todo: str | Failure, cut: LastCut, default: str) -> Plan | NoItem:
return Plan(found, first, f"{first.tagline}\n\n{detail}".strip())
def version(release: tuple[int, int, int]) -> str:
return ".".join(map(str, release))
def worktree_on(porcelain: str, branch: str) -> pathlib.Path | None:
"""The worktree on branch, in what `git worktree list --porcelain` printed; None where none is."""
for block in porcelain.split("\n\n"):
+2 -2
View File
@@ -1,9 +1,9 @@
"""The lines the preflight prints, stated from what it gathered."""
from todo_table import bundle_candidates, Item
from todo_table import bundle_candidates, Item, version
from failure import Failure
from chunk_preflight.gathered import Forge, Gathered, ItemFacts, NamedPath, NoItem, Plan, Ran
from chunk_pick import LastCut, unreleased_entries
from chunk_preflight.choices import PULLS_LIST, version
from chunk_preflight.choices import PULLS_LIST
from markdown_text import quoted