Count a cut release's open items as the next release's

This commit is contained in:
2026-11-16 01:05:47 +01:00
parent 4447e89e48
commit 8b649682dc
8 changed files with 81 additions and 11 deletions
+11
View File
@@ -5,6 +5,7 @@ import typing
from failure import Failure
from release_plan.todo_table import Item
from release_plan.release import Release
from release_plan.release_standing import LastCut
from project_config import templates
@@ -20,6 +21,14 @@ class Ran:
stderr: str
@dataclasses.dataclass(frozen=True)
class CarriedOver:
"""The items, by ID in the plan's order, that the plan files under `cut`, a release already cut, and that count as `into`'s, the next release: release_standing.carried."""
cut: Release
into: Release
ids: tuple[int, ...]
@dataclasses.dataclass(frozen=True)
class Plan:
"""The default branch's plan items, each with its detail, and `first`: the item the next chunk takes first."""
@@ -28,6 +37,8 @@ class Plan:
# first's tagline and detail.
text: str
branch_template: str
# The items of a release already cut, which `items` and `first` hold as the next release's; None where the plan files none under one.
carried: CarriedOver | None = None
@property
def branch(self) -> str: