Merge origin/main into item-441

This commit is contained in:
2026-11-19 01:37:46 +01:00
49 changed files with 2178 additions and 324 deletions
+8 -1
View File
@@ -63,10 +63,17 @@ class EpicStore(typing.Protocol):
def comment(self, key: str, text: str) -> None | Failure:
"""Posts text, markdown, as a comment on the epic's child issue named key, for the people who work the epic to read. A sub-task, an issue outside the epic, or an empty or blank text is refused."""
def finish(self, key: str) -> None | Failure:
def finish_issue(self, key: str) -> None | Failure:
"""Moves the epic's child issue named key, or a sub-task of one, to a done status, so that read answers it as done; one already done stays as it is. An issue outside the epic is refused. A Failure says why the move could not be made: the issue's workflow gives no way to a done status, gives several the backend cannot choose between, or refuses the move."""
def closed(self) -> bool | Failure:
"""Whether the epic itself is in a status the tracker counts as done."""
def close(self, summary: str) -> None | Failure:
"""Posts summary, markdown, as a comment on the epic, then moves the epic to a status the tracker counts as done. Before anything is posted, it refuses a blank summary, and an epic the tracker cannot move to such a status. Where the move fails after the comment is posted, the Failure says so."""
def unfit(summary: str, labels: tuple[str, ...]) -> Failure | None:
"""Why no tracker can file an issue with this summary and these labels; None where a tracker can file it."""
if not summary.strip() or "\n" in summary: