Pass over an item whose pull request awaits a person's merge, and hold a sentence about several named things to each
CI / tests (pull_request) Failing after 3m42s

This commit is contained in:
Lilleman
2026-11-19 21:54:43 +01:00
parent 06a1398196
commit 00975177ad
22 changed files with 312 additions and 27 deletions
+12
View File
@@ -44,6 +44,14 @@ class ItemFacts:
tools: list[tuple[str, Ran | Failure]]
@dataclasses.dataclass(frozen=True)
class LeftWorktree:
"""A worktree on a branch whose pull request, of this number, has merged."""
path: pathlib.Path
branch: str
pull: str
@dataclasses.dataclass(frozen=True)
class Gathered:
"""Everything the preflight read and ran, for facts.render to state."""
@@ -62,3 +70,7 @@ class Gathered:
plan_outside: bool
# The language and the templates the project's config names, by their settings.
texts: dict[str, str]
# Why the pull requests that await a person's merge could not be read; None where they were read, or the chunk merges its own.
merges_unread: Failure | None = None
# Each other worktree whose pull request a person has merged, which `chunk-pr clean` is still to remove.
left: tuple[LeftWorktree, ...] = ()